diff options
| author | Damien Le Moal <[email protected]> | 2022-03-01 20:30:08 +0900 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2022-03-08 22:30:34 -0500 |
| commit | e9c478014b602fda2a99a6370d9eb2e5d7355246 (patch) | |
| tree | cbe92a777ba1a423f965aa05780daa492e14d5af /tools/perf/scripts/python | |
| parent | 71bb9ab6e3511b7bb98678a19eb8cf1ccbf3ca2f (diff) | |
scsi: scsi_debug: Silence unexpected unlock warnings
The return statement inside the sdeb_read_lock(), sdeb_read_unlock(),
sdeb_write_lock() and sdeb_write_unlock() confuse sparse, leading to many
warnings about unexpected unlocks in the resp_xxx() functions.
Modify the lock/unlock functions using the __acquire() and __release()
inline annotations for the sdebug_no_rwlock == true case to avoid these
warnings.
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Douglas Gilbert <[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')
0 files changed, 0 insertions, 0 deletions