Files
linux/drivers/acpi
Dan Williams 02a5363e98 acpi, nfit: Fix scrub idle detection
commit 33cc2c9667 upstream.

The notification of scrub completion happens within the scrub workqueue.
That can clearly race someone running scrub_show() and work_busy()
before the workqueue has a chance to flush the recently completed work.
Add a flag to reliably indicate the idle vs busy state. Without this
change applications using poll(2) to wait for scrub-completion may
falsely wakeup and read ARS as being busy even though the thread is
going idle and then hang indefinitely.

Fixes: bc6ba80858 ("nfit, address-range-scrub: rework and simplify ARS...")
Cc: <stable@vger.kernel.org>
Reported-by: Vishal Verma <vishal.l.verma@intel.com>
Tested-by: Vishal Verma <vishal.l.verma@intel.com>
Reported-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-17 11:48:30 +02:00
..
2018-07-17 11:48:30 +02:00
2018-02-21 23:27:13 +01:00
2016-04-27 23:42:57 +02:00
2016-01-04 22:10:30 +01:00
2018-01-09 16:34:34 +01:00
2018-04-04 13:27:58 -05:00
2018-02-21 23:27:13 +01:00