diff options
author | Dave Jiang <dave.jiang@intel.com> | 2016-09-09 09:10:08 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-09-09 17:34:46 -0700 |
commit | 1e8b8d9619f9476e94f32eb20cab000d50d236aa (patch) | |
tree | 916ab96acbdc05f548e85b3897be7167276b3e4f /crypto | |
parent | 2e21807d4b131dfd4a8e5c82116a85b62f28aeec (diff) | |
download | linux-1e8b8d9619f9476e94f32eb20cab000d50d236aa.tar.bz2 |
libnvdimm: allow legacy (e820) pmem region to clear bad blocks
Bad blocks can be injected via /sys/block/pmemN/badblocks. In a situation
where legacy pmem is being used or a pmem region created by using memmap
kernel parameter, the injected bad blocks are not cleared due to
nvdimm_clear_poison() failing from lack of ndctl function pointer. In
this case we need to just return as handled and allow the bad blocks to
be cleared rather than fail.
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions