linux_dsm_epyc7002/drivers/acpi/nfit
Dan Williams 78727137fd nfit, address-range-scrub: fix scrub in-progress reporting
There is a small window whereby ARS scan requests can schedule work that
userspace will miss when polling scrub_show. Hold the init_mutex lock
over calls to report the status to close this potential escape. Also,
make sure that requests to cancel the ARS workqueue are treated as an
idle event.

Cc: <stable@vger.kernel.org>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Fixes: 37b137ff8c ("nfit, libnvdimm: allow an ARS scrub...")
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2018-04-03 11:51:42 -07:00
..
core.c nfit, address-range-scrub: fix scrub in-progress reporting 2018-04-03 11:51:42 -07:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile nfit: do an ARS scrub on hitting a latent media error 2016-07-24 08:04:04 -07:00
mce.c acpi, nfit: remove redundant __func__ in dev_dbg 2018-03-05 15:58:36 -08:00
nfit.h acpi, nfit: rework NVDIMM leaf method detection 2018-03-28 10:44:50 -07:00