Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173625
b: refs/heads/master
c: 14caf44
h: refs/heads/master
i:
  173623: e262551
v: v3
  • Loading branch information
Vasu Dev authored and James Bottomley committed Dec 4, 2009
1 parent 7a31921 commit eca1b8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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: 5c20848a096fb1880ded99816be79d78ca1cd696
refs/heads/master: 14caf44c69184ed72d46a2f883311daf27a4192f
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static struct scsi_host_template fcoe_shost_template = {
.change_queue_depth = fc_change_queue_depth,
.change_queue_type = fc_change_queue_type,
.this_id = -1,
.cmd_per_lun = 32,
.cmd_per_lun = 3,
.can_queue = FCOE_MAX_OUTSTANDING_COMMANDS,
.use_clustering = ENABLE_CLUSTERING,
.sg_tablesize = SG_ALL,
Expand Down
14 changes: 6 additions & 8 deletions trunk/drivers/scsi/libfc/fc_fcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2033,18 +2033,16 @@ EXPORT_SYMBOL(fc_eh_host_reset);
int fc_slave_alloc(struct scsi_device *sdev)
{
struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
int queue_depth;

if (!rport || fc_remote_port_chkready(rport))
return -ENXIO;

if (sdev->tagged_supported) {
if (sdev->host->hostt->cmd_per_lun)
queue_depth = sdev->host->hostt->cmd_per_lun;
else
queue_depth = FC_FCP_DFLT_QUEUE_DEPTH;
scsi_activate_tcq(sdev, queue_depth);
}
if (sdev->tagged_supported)
scsi_activate_tcq(sdev, FC_FCP_DFLT_QUEUE_DEPTH);
else
scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev),
FC_FCP_DFLT_QUEUE_DEPTH);

return 0;
}
EXPORT_SYMBOL(fc_slave_alloc);
Expand Down

0 comments on commit eca1b8c

Please sign in to comment.