aboutsummaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2021-12-03 15:19:49 -0800
committerMartin K. Petersen <[email protected]>2021-12-06 22:30:34 -0500
commit8d077ede48c1532d791c027467d152ae137c54ab (patch)
tree703844f9eb7251efddfe6f28e867ea519208aa0c /scripts/objdiff
parent5675c381ea51360b4968b78f23aefda73e3de90d (diff)
scsi: ufs: Optimize the command queueing code
Remove the clock scaling lock from ufshcd_queuecommand() since it is a performance bottleneck. Instead check the SCSI device budget bitmaps in the code that waits for ongoing ufshcd_queuecommand() calls. A bit is set in sdev->budget_map just before scsi_queue_rq() is called and a bit is cleared from that bitmap if scsi_queue_rq() does not submit the request or after the request has finished. See also the blk_mq_{get,put}_dispatch_budget() calls in the block layer. There is no risk for a livelock since the block layer delays queue reruns if queueing a request fails because the SCSI host has been blocked. Link: https://lore.kernel.org/r/[email protected] Cc: Asutosh Das (asd) <[email protected]> Reviewed-by: Asutosh Das <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions