]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: scsi_debug: Refine sdebug_blk_mq_poll()
authorDouglas Gilbert <dgilbert@interlog.com>
Sun, 9 Jan 2022 01:28:48 +0000 (20:28 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jan 2022 05:25:05 +0000 (00:25 -0500)
commit1d05c32dafb51a15acf95f3c8a4adfc367e755e4
tree407deced6a29b3df99edfda0f4a744b7f147aa22
parent335d3199ad13c1705472b19e5a64e38d7f3c439e
scsi: scsi_debug: Refine sdebug_blk_mq_poll()

Refine the sdebug_blk_mq_poll() function so it only takes the spinlock on
the queue when it can see one or more requests with the in_use bitmap flag
set.

Link: https://lore.kernel.org/r/20220109012853.301953-5-dgilbert@interlog.com
Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c