diff options
author | Vishal Verma <vishal.l.verma@intel.com> | 2018-09-19 01:48:31 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-09-28 20:06:56 +0200 |
commit | 48af2f7e52f4cd5eb41ebcd1bd2e326aa2d33d32 (patch) | |
tree | 1a4f7d35e1ff62d8cf1a62ff3b95b9890577d319 /block/blk-mq-debugfs.c | |
parent | libnvdimm: Set device node in nd_device_register (diff) | |
download | linux-48af2f7e52f4cd5eb41ebcd1bd2e326aa2d33d32.tar.xz linux-48af2f7e52f4cd5eb41ebcd1bd2e326aa2d33d32.zip |
libnvdimm, pfn: during init, clear errors in the metadata area
If there are badblocks present in the 'struct page' area for pfn
namespaces, until now, the only way to clear them has been to force the
namespace into raw mode, clear the errors, and re-enable the fsdax mode.
This is clunky, given that it should be easy enough for the pfn driver
to do the same.
Add a new helper that uses the most recently available badblocks list to
check whether there are any badblocks that lie in the volatile struct
page area. If so, before initializing the struct pages, send down
targeted writes via nvdimm_write_bytes to write zeroes to the affected
blocks, and thus clear errors.
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'block/blk-mq-debugfs.c')
0 files changed, 0 insertions, 0 deletions