]> Git Repo - linux.git/commit
pmem: report error on clear poison failure
authorToshi Kani <[email protected]>
Thu, 13 Oct 2016 15:54:21 +0000 (09:54 -0600)
committerDan Williams <[email protected]>
Wed, 19 Oct 2016 17:35:52 +0000 (10:35 -0700)
commit3115bb02b5c23d960df5f1bf551ec394a9bb10ec
tree975efbbc07264df4bc1e454203da10852b521f88
parent75d29713b792da4782cadfaa87e802183440694e
pmem: report error on clear poison failure

ACPI Clear Uncorrectable Error DSM function may fail or may be
unsupported on a platform.  pmem_clear_poison() returns without clearing
badblocks in such cases.  This failure is detected at the next read
(-EIO).

This behavior can lead to an issue when user keeps writing but does not
read immediately.  For instance, flight recorder file may be only read
when it is necessary for troubleshooting.

Change pmem_do_bvec() and pmem_clear_poison() to return -EIO so that
filesystem can log an error message on a write error.

Cc: Vishal Verma <[email protected]>
Signed-off-by: Toshi Kani <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
drivers/nvdimm/pmem.c
This page took 0.052117 seconds and 4 git commands to generate.