diff options
author | Tetsuo Handa <[email protected]> | 2022-08-21 12:59:00 +0900 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-08-31 23:39:58 -0400 |
commit | a4345557527f7d9dab6684fc2d1dd7800e99d73a (patch) | |
tree | 2960db5be16c9b317c065387959c016ce4b2fe00 /tools/perf/scripts/python/stackcollapse.py | |
parent | 1b2b8d45ccd6a61f88c0d5a55c9119c3b710bfa5 (diff) |
scsi: qla2xxx: Always wait for qlt_sess_work_fn() from qlt_stop_phase1()
Currently qlt_stop_phase1() may fail to call flush_scheduled_work(), for
list_empty() may return true as soon as qlt_sess_work_fn() called
list_del(). In order to close this race window, check list_empty() after
calling flush_scheduled_work().
If this patch causes problems, please check commit c4f135d64382
("workqueue: Wrap flush_workqueue() using a macro"). We are on the way to
remove all flush_scheduled_work() calls from the kernel.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Himanshu Madhani <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions