diff options
author | Martin Wilck <mwilck@suse.com> | 2023-06-14 12:36:14 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-06-16 18:19:59 +0200 |
commit | e20fff8a1f4940f46be888bd175412c2e3e64e96 (patch) | |
tree | 7d20595a0a7105e59305c81d1010f738d55c0d28 /drivers/scsi/qla1280.h | |
parent | scsi: core: Don't wait for quiesce in scsi_stop_queue() (diff) | |
download | linux-e20fff8a1f4940f46be888bd175412c2e3e64e96.tar.xz linux-e20fff8a1f4940f46be888bd175412c2e3e64e96.zip |
scsi: core: Don't wait for quiesce in scsi_device_block()
scsi_device_block() is only called from scsi_target_block(), which calls it
repeatedly for every child device. For targets with many devices, waiting
for every queue to quiesce may cause a substantial delay (we measured more
than 100s delay for blocking a FC rport with 2048 LUNs).
Just call blk_mq_wait_quiesce_done() once from scsi_target_block() after
stopping all queues.
Signed-off-by: Martin Wilck <mwilck@suse.com>
Link: https://lore.kernel.org/r/20230614103616.31857-6-mwilck@suse.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla1280.h')
0 files changed, 0 insertions, 0 deletions