diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-12-13 13:43:38 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:28:46 -0500 |
commit | 4cd49ea1330c946db00a28819b766062716aa857 (patch) | |
tree | f053941849677858a2280fe676edf199d811648d /drivers/scsi/libiscsi.c | |
parent | 7a53dc52a5f218bf306b875bf0610e851d5a8268 (diff) |
[SCSI] libiscsi, iscsi class: set tmf to a safe default and export in sysfs
Older tools will not be setting the tmf time outs since they
did not exists, so set them to a safe default.
And export abort and lu reset timeout values in sysfs.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r-- | drivers/scsi/libiscsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index f15df8d75fd8..6573223cb346 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -1732,6 +1732,8 @@ iscsi_session_setup(struct iscsi_transport *iscsit, | |||
1732 | session->host = shost; | 1732 | session->host = shost; |
1733 | session->state = ISCSI_STATE_FREE; | 1733 | session->state = ISCSI_STATE_FREE; |
1734 | session->fast_abort = 1; | 1734 | session->fast_abort = 1; |
1735 | session->lu_reset_timeout = 15; | ||
1736 | session->abort_timeout = 10; | ||
1735 | session->mgmtpool_max = ISCSI_MGMT_CMDS_MAX; | 1737 | session->mgmtpool_max = ISCSI_MGMT_CMDS_MAX; |
1736 | session->cmds_max = cmds_max; | 1738 | session->cmds_max = cmds_max; |
1737 | session->queued_cmdsn = session->cmdsn = initial_cmdsn; | 1739 | session->queued_cmdsn = session->cmdsn = initial_cmdsn; |