Commit 5948612
committed
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>1 parent d3abaf4 commit 5948612
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3341 | 3341 | | |
3342 | 3342 | | |
3343 | 3343 | | |
| 3344 | + | |
| 3345 | + | |
3344 | 3346 | | |
3345 | 3347 | | |
3346 | 3348 | | |
| |||
3350 | 3352 | | |
3351 | 3353 | | |
3352 | 3354 | | |
3353 | | - | |
3354 | | - | |
| 3355 | + | |
| 3356 | + | |
3355 | 3357 | | |
3356 | | - | |
3357 | | - | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
3358 | 3367 | | |
3359 | | - | |
| 3368 | + | |
3360 | 3369 | | |
3361 | 3370 | | |
3362 | 3371 | | |
| |||
0 commit comments