Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173707
b: refs/heads/master
c: 1796e72
h: refs/heads/master
i:
  173705: 0a353ea
  173703: 6b5fe05
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Dec 4, 2009
1 parent d44b8f6 commit 6257ab4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 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: b20d038dff877566694181578c49c31616d622cd
refs/heads/master: 1796e72291b2b6aafaec5954e666d0b5a95da935
15 changes: 12 additions & 3 deletions trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1739,10 +1739,19 @@ EXPORT_SYMBOL_GPL(iscsi_queuecommand);

int iscsi_change_queue_depth(struct scsi_device *sdev, int depth, int reason)
{
if (reason != SCSI_QDEPTH_DEFAULT)
switch (reason) {
case SCSI_QDEPTH_DEFAULT:
scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
break;
case SCSI_QDEPTH_QFULL:
scsi_track_queue_full(sdev, depth);
break;
case SCSI_QDEPTH_RAMP_UP:
scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
break;
default:
return -EOPNOTSUPP;

scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
}
return sdev->queue_depth;
}
EXPORT_SYMBOL_GPL(iscsi_change_queue_depth);
Expand Down

0 comments on commit 6257ab4

Please sign in to comment.