]> git.karo-electronics.de Git - linux-beck.git/commit
nfit, libnvdimm: allow an ARS scrub to be triggered on demand
authorVishal Verma <vishal.l.verma@intel.com>
Sun, 24 Jul 2016 04:51:42 +0000 (21:51 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 24 Jul 2016 04:51:42 +0000 (21:51 -0700)
commit37b137ff8c833385b75ff2baf4bace25e52247d2
tree7bf79dcc785820ed90a02874c4c9119e528da3c4
parent18515942d61bdfd4b31ea13f9fbb9c18650c6818
nfit, libnvdimm: allow an ARS scrub to be triggered on demand

Normally, an ARS (Address Range Scrub) only happens at
boot/initialization time. There can however arise situations where a
bus-wide rescan is needed - notably, in the case of discovering a latent
media error, we should do a full rescan to figure out what other sectors
are bad, and thus potentially avoid triggering an mce on them in the
future. Also provide a sysfs trigger to start a bus-wide scrub.

Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c
drivers/acpi/nfit.h
drivers/nvdimm/core.c
include/linux/libnvdimm.h