]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm/pmem: Honor force_raw for legacy pmem regions
authorDan Williams <dan.j.williams@intel.com>
Fri, 25 Jan 2019 01:33:06 +0000 (17:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:17 +0000 (14:35 +0100)
commit044bfdb953cd62d497582c069975abb92308c74e
tree2b86288c98a4a31e5e83a6053ec71efec28c7d60
parenta3211ba18b10d26e827a7fde380f95985e6f118e
libnvdimm/pmem: Honor force_raw for legacy pmem regions

commit fa7d2e639cd90442d868dfc6ca1d4cc9d8bf206e upstream.

For recovery, where non-dax access is needed to a given physical address
range, and testing, allow the 'force_raw' attribute to override the
default establishment of a dev_pagemap.

Otherwise without this capability it is possible to end up with a
namespace that can not be activated due to corrupted info-block, and one
that can not be repaired due to a section collision.

Cc: <stable@vger.kernel.org>
Fixes: 004f1afbe199 ("libnvdimm, pmem: direct map legacy pmem by default")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvdimm/namespace_devs.c