]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit629019dadd1793a96df60509b9659b5d75341d62
tree4dfbb723f919e57c5840740fd7b899adb0c194f1
parent9a7b25fc6200f1b3cc1c85787421fc2968b3bf9f
libnvdimm/pmem: Honor force_raw for legacy pmem regions

BugLink: https://bugs.launchpad.net/bugs/1837952
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/nvdimm/namespace_devs.c