scsi: core: Only kick the requeue list if necessary
authorBart Van Assche <bvanassche@acm.org>
Thu, 18 May 2023 19:31:59 +0000 (12:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 May 2023 15:05:34 +0000 (11:05 -0400)
commit8b566edbdbfb5cde31a322c57932694ff48125ed
treec52df25e2cf8303f80702f19021ebb09eed3004e
parent8bb1c6243c4ba397958fe67837e075bd1bb8d3b4
scsi: core: Only kick the requeue list if necessary

Instead of running the request queue of each device associated with a host
every 3 ms (BLK_MQ_RESOURCE_DELAY) while host error handling is in
progress, run the request queue after error handling has finished.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230518193159.1166304-4-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c