Skip to content

Commit

Permalink
[SCSI] qla4xxx: add support for ql4xsess_recovery_tmo cmd line param
Browse files Browse the repository at this point in the history
Target Session Recovery Timeout

Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Vikas Chaudhary authored and James Bottomley committed Mar 23, 2011
1 parent 8bb4033 commit 3038727
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions 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 3038727

Please sign in to comment.