]> git.baikalelectronics.ru Git - kernel.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)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Feb 2019 18:48:14 +0000 (10:48 -0800)
commit9846267d79bd2a8122fc9c8d217e0d22047ec46f
tree0328b374c2d676b6756d4ae834841f094ab26c6b
parenta1036a96739c77aadafdd6fd18ae8513cf37327b
libnvdimm/pmem: Honor force_raw for legacy pmem regions

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: 6f5189d3c541 ("libnvdimm, pmem: direct map legacy pmem by default")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c