diff options
| author | Bart Van Assche <[email protected]> | 2021-07-21 20:34:34 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-08-02 21:43:59 -0400 |
| commit | 169f5eb28869098ac02d7e03abea36e8ac599bcc (patch) | |
| tree | f8150ff360201fd1b138fb5da0a2eb61aa68d20e /tools/perf/scripts/python/bin | |
| parent | a024ad0d49550e4ea1156e677cd9382e1eefbdd7 (diff) | |
scsi: ufs: Optimize SCSI command processing
Use a spinlock to protect hba->outstanding_reqs instead of using atomic
operations to update this member variable.
This patch is a performance improvement because it reduces the number of
atomic operations in the hot path (test_and_clear_bit()) and because it
reduces the lock contention on the SCSI host lock. On my test setup this
patch improves IOPS by about 1%.
Link: https://lore.kernel.org/r/[email protected]
Cc: Adrian Hunter <[email protected]>
Cc: Stanley Chu <[email protected]>
Cc: Can Guo <[email protected]>
Cc: Asutosh Das <[email protected]>
Cc: Avri Altman <[email protected]>
Reviewed-by: Daejun Park <[email protected]>
Reviewed-by: Bean Huo <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions