Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161064
b: refs/heads/master
c: 79a3ec1
h: refs/heads/master
v: v3
  • Loading branch information
Kashyap, Desai authored and James Bottomley committed Aug 22, 2009
1 parent 7186606 commit a79bb72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 4b97650b555b1cd09b547104d98da0ff700187d9
refs/heads/master: 79a3ec1ace2329d115ecd2445379b46aed3286b0
5 changes: 2 additions & 3 deletions trunk/drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -4761,10 +4761,9 @@ mptsas_probe(struct pci_dev *pdev, const struct pci_device_id *id)

/* set 16 byte cdb's */
sh->max_cmd_len = 16;

sh->max_id = ioc->pfacts[0].PortSCSIID;
sh->can_queue = min_t(int, ioc->req_depth - 10, sh->can_queue);
sh->max_id = -1;
sh->max_lun = max_lun;

sh->transportt = mptsas_transport_template;

/* Required entry.
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/message/fusion/mptscsih.c
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,10 @@ mptscsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
else
max_depth = MPT_SCSI_CMD_PER_DEV_LOW;
} else
max_depth = MPT_SCSI_CMD_PER_DEV_HIGH;
max_depth = ioc->sh->can_queue;

if (!sdev->tagged_supported)
max_depth = 1;

if (qdepth > max_depth)
qdepth = max_depth;
Expand Down

0 comments on commit a79bb72

Please sign in to comment.