]> git.karo-electronics.de Git - linux-beck.git/commit
libnvdimm: check and clear poison before writing to pmem
authorDave Jiang <dave.jiang@intel.com>
Fri, 11 Nov 2016 19:37:36 +0000 (12:37 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 12 Nov 2016 04:35:31 +0000 (20:35 -0800)
commit82bf1037f2cab2d6960a08ae08513f2c3c0b335a
treebe634c78d511c071166a65cdb44c0e6821ad48f7
parentdafb1048740c36c008fc093bea3532637c143f91
libnvdimm: check and clear poison before writing to pmem

We need to clear any poison when we are writing to pmem. The granularity
will be sector size. If it's less then we can't do anything about it
barring corruption.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
[djbw: fixup 0-length write request to succeed]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/claim.c