diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-12-13 13:43:30 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-01-11 19:28:35 -0500 |
commit | f6d5180c78780d63b0577edeb3ce41eeb3e93eea (patch) | |
tree | 95eb44fb84dd7659f816c5f1166c1ae7e2301f5f /include/scsi/iscsi_if.h | |
parent | 2697478903d0ad8bdbf868b1346ae4b891662bb1 (diff) |
[SCSI] libiscsi: fix nop handling
During root boot and shutdown the target could send us nops.
At this time iscsid cannot be running, so the target will drop
the session and the boot or shutdown will hang.
To handle this and allow us to better control when to check the network
this patch moves the nop handling to the kernel.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/iscsi_if.h')
-rw-r--r-- | include/scsi/iscsi_if.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index 8a4426df6c3a..e19e58423166 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h | |||
@@ -244,6 +244,12 @@ enum iscsi_param { | |||
244 | ISCSI_PARAM_PASSWORD_IN, | 244 | ISCSI_PARAM_PASSWORD_IN, |
245 | 245 | ||
246 | ISCSI_PARAM_FAST_ABORT, | 246 | ISCSI_PARAM_FAST_ABORT, |
247 | ISCSI_PARAM_ABORT_TMO, | ||
248 | ISCSI_PARAM_LU_RESET_TMO, | ||
249 | ISCSI_PARAM_HOST_RESET_TMO, | ||
250 | |||
251 | ISCSI_PARAM_PING_TMO, | ||
252 | ISCSI_PARAM_RECV_TMO, | ||
247 | /* must always be last */ | 253 | /* must always be last */ |
248 | ISCSI_PARAM_MAX, | 254 | ISCSI_PARAM_MAX, |
249 | }; | 255 | }; |
@@ -275,6 +281,11 @@ enum iscsi_param { | |||
275 | #define ISCSI_PASSWORD (1 << ISCSI_PARAM_PASSWORD) | 281 | #define ISCSI_PASSWORD (1 << ISCSI_PARAM_PASSWORD) |
276 | #define ISCSI_PASSWORD_IN (1 << ISCSI_PARAM_PASSWORD_IN) | 282 | #define ISCSI_PASSWORD_IN (1 << ISCSI_PARAM_PASSWORD_IN) |
277 | #define ISCSI_FAST_ABORT (1 << ISCSI_PARAM_FAST_ABORT) | 283 | #define ISCSI_FAST_ABORT (1 << ISCSI_PARAM_FAST_ABORT) |
284 | #define ISCSI_ABORT_TMO (1 << ISCSI_PARAM_ABORT_TMO) | ||
285 | #define ISCSI_LU_RESET_TMO (1 << ISCSI_PARAM_LU_RESET_TMO) | ||
286 | #define ISCSI_HOST_RESET_TMO (1 << ISCSI_PARAM_HOST_RESET_TMO) | ||
287 | #define ISCSI_PING_TMO (1 << ISCSI_PARAM_PING_TMO) | ||
288 | #define ISCSI_RECV_TMO (1 << ISCSI_PARAM_RECV_TMO) | ||
278 | 289 | ||
279 | /* iSCSI HBA params */ | 290 | /* iSCSI HBA params */ |
280 | enum iscsi_host_param { | 291 | enum iscsi_host_param { |