Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242716
b: refs/heads/master
c: 8bb4033
h: refs/heads/master
v: v3
  • Loading branch information
Vikas Chaudhary authored and James Bottomley committed Mar 23, 2011
1 parent 82d9c75 commit 5cee03e
Show file tree
Hide file tree
Showing 2 changed files with 12 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: fc7657c9d98c250c9fd212348e6e156c73885cc4
refs/heads/master: 8bb4033d2b91e055a32e905e10a7034a4b077b7a
12 changes: 11 additions & 1 deletion trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ MODULE_PARM_DESC(ql4xenablemsix,
" 2 = enable MSI interrupt mechanism.");

#define QL4_DEF_QDEPTH 32
static int ql4xmaxqdepth = QL4_DEF_QDEPTH;
module_param(ql4xmaxqdepth, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(ql4xmaxqdepth,
"Maximum queue depth to report for target devices.\n"
" Default: 32.");

/*
* SCSI host template entry points
Expand Down Expand Up @@ -1904,10 +1909,15 @@ static int qla4xxx_slave_alloc(struct scsi_device *sdev)
{
struct iscsi_cls_session *sess = starget_to_session(sdev->sdev_target);
struct ddb_entry *ddb = sess->dd_data;
int queue_depth = QL4_DEF_QDEPTH;

sdev->hostdata = ddb;
sdev->tagged_supported = 1;
scsi_activate_tcq(sdev, QL4_DEF_QDEPTH);

if (ql4xmaxqdepth != 0 && ql4xmaxqdepth <= 0xffffU)
queue_depth = ql4xmaxqdepth;

scsi_activate_tcq(sdev, queue_depth);
return 0;
}

Expand Down

0 comments on commit 5cee03e

Please sign in to comment.