]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: scsi_debug: Use blk_mq_tagset_busy_iter() in stop_all_queued()
authorJohn Garry <john.g.garry@oracle.com>
Mon, 27 Mar 2023 07:43:07 +0000 (07:43 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Apr 2023 02:09:22 +0000 (22:09 -0400)
commit9c559c9b4748fed11687694e65e5d6d1eb2919cd
treeb91351a550ef85fe5e16104d4e67cedad20f6425
parent600d9ead3936b2f22e664c59345a2e006ff324c5
scsi: scsi_debug: Use blk_mq_tagset_busy_iter() in stop_all_queued()

Instead of iterating all deferred commands in the submission queue
structures, use blk_mq_tagset_busy_iter(), which is a standard API for
this.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20230327074310.1862889-9-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c