aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index a20730c48020..6d62be664d55 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1533,7 +1533,7 @@ static void scsi_request_fn(struct request_queue *q)
1533 * we add the dev to the starved list so it eventually gets 1533 * we add the dev to the starved list so it eventually gets
1534 * a run when a tag is freed. 1534 * a run when a tag is freed.
1535 */ 1535 */
1536 if (blk_queue_tagged(q) && (req->tag == -1)) { 1536 if (blk_queue_tagged(q) && !blk_rq_tagged(req)) {
1537 if (list_empty(&sdev->starved_entry)) 1537 if (list_empty(&sdev->starved_entry))
1538 list_add_tail(&sdev->starved_entry, 1538 list_add_tail(&sdev->starved_entry,
1539 &shost->starved_list); 1539 &shost->starved_list);