Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242717
b: refs/heads/master
c: 3038727
h: refs/heads/master
i:
  242715: 82d9c75
v: v3
  • Loading branch information
Vikas Chaudhary authored and James Bottomley committed Mar 23, 2011
1 parent 5cee03e commit efb3837
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 8bb4033d2b91e055a32e905e10a7034a4b077b7a
refs/heads/master: 3038727c8391ab1f3e5f5cf764f9f74164e6b47a
10 changes: 8 additions & 2 deletions trunk/drivers/scsi/qla4xxx/ql4_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ MODULE_PARM_DESC(ql4xmaxqdepth,
"Maximum queue depth to report for target devices.\n"
" Default: 32.");

static int ql4xsess_recovery_tmo = QL4_SESS_RECOVERY_TMO;
module_param(ql4xsess_recovery_tmo, int, S_IRUGO);
MODULE_PARM_DESC(ql4xsess_recovery_tmo,
"Target Session Recovery Timeout.\n"
" Default: 30 sec.");

/*
* SCSI host template entry points
*/
Expand Down Expand Up @@ -166,7 +172,7 @@ static void qla4xxx_recovery_timedout(struct iscsi_cls_session *session)
DEBUG2(printk("scsi%ld: %s: ddb [%d] session recovery timeout "
"of (%d) secs exhausted, marking device DEAD.\n",
ha->host_no, __func__, ddb_entry->fw_ddb_index,
QL4_SESS_RECOVERY_TMO));
ddb_entry->sess->recovery_tmo));
}
}

Expand Down Expand Up @@ -296,7 +302,7 @@ int qla4xxx_add_sess(struct ddb_entry *ddb_entry)
{
int err;

ddb_entry->sess->recovery_tmo = QL4_SESS_RECOVERY_TMO;
ddb_entry->sess->recovery_tmo = ql4xsess_recovery_tmo;

err = iscsi_add_session(ddb_entry->sess, ddb_entry->fw_ddb_index);
if (err) {
Expand Down

0 comments on commit efb3837

Please sign in to comment.