]> 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)
commit338232cf79c0aeb6be36b6cae133b617eacce9ee
treee1a2b15d058b7bae4f2985a24e9ace48a86389fe
parentc708f8bdf3c7e9485fd1dc000f64b04c93953c20
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