]> git.baikalelectronics.ru Git - kernel.git/commit
acpi, nfit: Further restrict userspace ARS start requests
authorDan Williams <dan.j.williams@intel.com>
Mon, 15 Oct 2018 19:57:31 +0000 (12:57 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 17 Oct 2018 21:02:32 +0000 (14:02 -0700)
commit550d195f5e213588131670d2559297bd5ad44366
treee1a2b15d058b7bae4f2985a24e9ace48a86389fe
parent1c1dc1d57a675c11583f361a6857e4a8fefae9a9
acpi, nfit: Further restrict userspace ARS start requests

In addition to not allowing ARS start while the background thread is
actively running, prevent ARS start while any scrub request is pending.

This aligns the window for ARS start submission with the status of ARS
reported via sysfs. Previously userspace could sneak its own ARS start
requests in while sysfs reported -EBUSY.

Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c