Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34993
b: refs/heads/master
c: 04846f2
h: refs/heads/master
i:
  34991: e5c53a2
v: v3
  • Loading branch information
Andreas Herrmann authored and James Bottomley committed Aug 19, 2006
1 parent c25cf0c commit 9c13f98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19ac0db3e22de3b00cc4aadc7efbad0420c7aa08
refs/heads/master: 04846f25920d4b05d6040c531cc601049260db52
10 changes: 9 additions & 1 deletion trunk/drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,15 @@ static void scsi_run_queue(struct request_queue *q)
list_del_init(&sdev->starved_entry);
spin_unlock_irqrestore(shost->host_lock, flags);

blk_run_queue(sdev->request_queue);

if (test_bit(QUEUE_FLAG_REENTER, &q->queue_flags) &&
!test_and_set_bit(QUEUE_FLAG_REENTER,
&sdev->request_queue->queue_flags)) {
blk_run_queue(sdev->request_queue);
clear_bit(QUEUE_FLAG_REENTER,
&sdev->request_queue->queue_flags);
} else
blk_run_queue(sdev->request_queue);

spin_lock_irqsave(shost->host_lock, flags);
if (unlikely(!list_empty(&sdev->starved_entry)))
Expand Down

0 comments on commit 9c13f98

Please sign in to comment.