diff options
| author | Damien Le Moal <[email protected]> | 2022-03-01 20:30:09 +0900 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-03-08 22:30:34 -0500 |
| commit | 3fd07aecb75003fbcb0b7c3124d12f71ffd360d8 (patch) | |
| tree | 991093093f66841928be7aec0c050332b9b4e8f5 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | e9c478014b602fda2a99a6370d9eb2e5d7355246 (diff) | |
scsi: scsi_debug: Fix qc_lock use in sdebug_blk_mq_poll()
The use of the 'locked' boolean variable to control locking and unlocking
of the qc_lock spinlock of struct sdebug_queue confuses sparse, leading to
a warning about an unexpected unlock. Simplify the qc_lock lock/unlock
handling code of this function to avoid this warning by removing the
'locked' boolean variable. This change also fixes unlocked access to the
in_use_bm bitmap with the find_first_bit() function.
Link: https://lore.kernel.org/r/[email protected]
Fixes: b05d4e481eff ("scsi: scsi_debug: Refine sdebug_blk_mq_poll()")
Cc: [email protected]
Signed-off-by: Damien Le Moal <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions