diff options
| author | Don Brace <[email protected]> | 2019-05-07 13:32:33 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-06-18 19:46:18 -0400 |
| commit | c5dfd106414f3e038fee5c6f0800fd55ed07b41d (patch) | |
| tree | 57778cd59a7efe4537d656c7fe0f197ae3386e98 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 9e33f0d5788fe4aaa42b1abf6536d046c724a8cd (diff) | |
scsi: hpsa: correct device resets
Correct a race condition that occurs between the reset handler and the
completion handler. There are times when the wait_event condition is
never met due to this race condition and the reset never completes.
The reset_pending field is NULL initially.
t Reset Handler Thread Completion Thread
-- -------------------- -----------------
t1 if (c->reset_pending)
t2 c->reset_pending = dev; if (atomic_dev_and_test(counter))
t3 atomic_inc(counter) wait_up_all(event_sync_wait_queue)
t4
t5 wait_event(...counter == 0)
Kernel.org Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=1994350
Bug 199435 - HPSA + P420i resetting logical Direct-Access
never complete
Reviewed-by: Justin Lindley <[email protected]>
Reviewed-by: David Carroll <[email protected]>
Reviewed-by: Scott Teel <[email protected]>
Signed-off-by: Don Brace <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions