Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106571
b: refs/heads/master
c: 885ace9
h: refs/heads/master
i:
  106569: 1ccf5b5
  106567: 736f92e
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Jul 26, 2008
1 parent b4e8f93 commit c1f45c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 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: 786231af0a4ac6d78cef51fa7e9c3dd63f016195
refs/heads/master: 885ace9e2f120439043ffa1bb72a2fa1f3afc645
19 changes: 14 additions & 5 deletions trunk/drivers/scsi/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,20 @@ void scsi_adjust_queue_depth(struct scsi_device *sdev, int tagged, int tags)

spin_lock_irqsave(sdev->request_queue->queue_lock, flags);

/* Check to see if the queue is managed by the block layer.
* If it is, and we fail to adjust the depth, exit. */
if (blk_queue_tagged(sdev->request_queue) &&
blk_queue_resize_tags(sdev->request_queue, tags) != 0)
goto out;
/*
* Check to see if the queue is managed by the block layer.
* If it is, and we fail to adjust the depth, exit.
*
* Do not resize the tag map if it is a host wide share bqt,
* because the size should be the hosts's can_queue. If there
* is more IO than the LLD's can_queue (so there are not enuogh
* tags) request_fn's host queue ready check will handle it.
*/
if (!sdev->host->bqt) {
if (blk_queue_tagged(sdev->request_queue) &&
blk_queue_resize_tags(sdev->request_queue, tags) != 0)
goto out;
}

sdev->queue_depth = tags;
switch (tagged) {
Expand Down

0 comments on commit c1f45c1

Please sign in to comment.