Skip to content

Commit b4fd63f

Browse files
diandersaxboe
authored andcommitted
Revert "scsi: core: run queue if SCSI device queue isn't ready and queue is idle"
This reverts commit 7e70aa7. Now that we have the patches ("blk-mq: In blk_mq_dispatch_rq_list() "no budget" is a reason to kick") and ("blk-mq: Rerun dispatching in the case of budget contention") we should no longer need the fix in the SCSI code. Revert it, resolving conflicts with other patches that have touched this code. With this revert (and the two new patches) I can run the script that was in commit 7e70aa7 ("scsi: core: run queue if SCSI device queue isn't ready and queue is idle") in a loop with no failure. If I do this revert without the two new patches I can easily get a failure. Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Ming Lei <ming.lei@redhat.com> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent a082342 commit b4fd63f

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎drivers/scsi/scsi_lib.c‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,12 +1610,7 @@ static bool scsi_mq_get_budget(struct blk_mq_hw_ctx *hctx)
16101610
struct request_queue *q = hctx->queue;
16111611
struct scsi_device *sdev = q->queuedata;
16121612

1613-
if (scsi_dev_queue_ready(q, sdev))
1614-
return true;
1615-
1616-
if (atomic_read(&sdev->device_busy) == 0 && !scsi_device_blocked(sdev))
1617-
blk_mq_delay_run_hw_queue(hctx, SCSI_QUEUE_DELAY);
1618-
return false;
1613+
return scsi_dev_queue_ready(q, sdev);
16191614
}
16201615

16211616
static blk_status_t scsi_queue_rq(struct blk_mq_hw_ctx *hctx,

0 commit comments

Comments
 (0)