diff options
author | Martin Wilck <[email protected]> | 2020-04-21 22:46:20 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-04-21 23:53:33 -0400 |
commit | 856e152a3c08bf7987cbd41900741d83d9cddc8e (patch) | |
tree | 1133975ab563abbc46f983cbbfbec4584faa7ae3 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 6cbb7aeded716b8660ee5d4b3dc082f791cdebaa (diff) |
scsi: qla2xxx: set UNLOADING before waiting for session deletion
The purpose of the UNLOADING flag is to avoid port login procedures to
continue when a controller is in the process of shutting down. It makes
sense to set this flag before starting session teardown.
Furthermore, use atomic test_and_set_bit() to avoid the shutdown being run
multiple times in parallel. In qla2x00_disable_board_on_pci_error(), the
test for UNLOADING is postponed until after the check for an already
disabled PCI board.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 45235022da99 ("scsi: qla2xxx: Fix driver unload by shutting down chip")
Reviewed-by: Arun Easi <[email protected]>
Reviewed-by: Daniel Wagner <[email protected]>
Reviewed-by: Roman Bolshakov <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Martin Wilck <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions