commit | 82bf1037f2cab2d6960a08ae08513f2c3c0b335a | [log] [tgz] |
---|---|---|
author | Dave Jiang <dave.jiang@intel.com> | Fri Nov 11 12:37:36 2016 -0700 |
committer | Dan Williams <dan.j.williams@intel.com> | Fri Nov 11 20:35:31 2016 -0800 |
tree | be634c78d511c071166a65cdb44c0e6821ad48f7 | |
parent | dafb1048740c36c008fc093bea3532637c143f91 [diff] |
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>