diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-04-02 16:40:04 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-03 11:51:42 -0700 |
commit | 78727137fdf49edf9f731bde79d7189067b4047a (patch) | |
tree | 9a16e2d9c3082c241c7055b0fcacac2ba6e6017e /drivers/nvdimm/region_devs.c | |
parent | 8d0d8ed3356aa9ed43b819aaedd39b08ca453007 (diff) | |
download | linux-stable-78727137fdf49edf9f731bde79d7189067b4047a.tar.gz linux-stable-78727137fdf49edf9f731bde79d7189067b4047a.tar.bz2 linux-stable-78727137fdf49edf9f731bde79d7189067b4047a.zip |
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: 37b137ff8c83 ("nfit, libnvdimm: allow an ARS scrub...")
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/region_devs.c')
0 files changed, 0 insertions, 0 deletions