aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_iscsi.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-12-13 13:43:20 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 19:28:19 -0500
commit843c0a8a76078cf961b244b839683d0667313740 (patch)
tree3feaf71c8e67f38e10e78e315bbc8623dcf38a3d /drivers/scsi/scsi_transport_iscsi.c
parent8ae732a91df051aba6820068a47b631a06599d84 (diff)
[SCSI] libiscsi, iscsi_tcp: add device support
This patch adds logical unit reset support. This should work for ib_iser, but I have not finished testing that driver so it is not hooked in yet. This patch also temporarily reverts the iscsi_tcp r2t write out patch. That code is completely rewritten in this patchset. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index cb48b80c0865..75d3069ecaa0 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -30,7 +30,7 @@
30#include <scsi/scsi_transport_iscsi.h> 30#include <scsi/scsi_transport_iscsi.h>
31#include <scsi/iscsi_if.h> 31#include <scsi/iscsi_if.h>
32 32
33#define ISCSI_SESSION_ATTRS 15 33#define ISCSI_SESSION_ATTRS 16
34#define ISCSI_CONN_ATTRS 11 34#define ISCSI_CONN_ATTRS 11
35#define ISCSI_HOST_ATTRS 4 35#define ISCSI_HOST_ATTRS 4
36#define ISCSI_TRANSPORT_VERSION "2.0-724" 36#define ISCSI_TRANSPORT_VERSION "2.0-724"
@@ -1218,6 +1218,7 @@ iscsi_session_attr(username, ISCSI_PARAM_USERNAME, 1);
1218iscsi_session_attr(username_in, ISCSI_PARAM_USERNAME_IN, 1); 1218iscsi_session_attr(username_in, ISCSI_PARAM_USERNAME_IN, 1);
1219iscsi_session_attr(password, ISCSI_PARAM_PASSWORD, 1); 1219iscsi_session_attr(password, ISCSI_PARAM_PASSWORD, 1);
1220iscsi_session_attr(password_in, ISCSI_PARAM_PASSWORD_IN, 1); 1220iscsi_session_attr(password_in, ISCSI_PARAM_PASSWORD_IN, 1);
1221iscsi_session_attr(fast_abort, ISCSI_PARAM_FAST_ABORT, 1);
1221 1222
1222#define iscsi_priv_session_attr_show(field, format) \ 1223#define iscsi_priv_session_attr_show(field, format) \
1223static ssize_t \ 1224static ssize_t \
@@ -1439,6 +1440,7 @@ iscsi_register_transport(struct iscsi_transport *tt)
1439 SETUP_SESSION_RD_ATTR(password_in, ISCSI_USERNAME_IN); 1440 SETUP_SESSION_RD_ATTR(password_in, ISCSI_USERNAME_IN);
1440 SETUP_SESSION_RD_ATTR(username, ISCSI_PASSWORD); 1441 SETUP_SESSION_RD_ATTR(username, ISCSI_PASSWORD);
1441 SETUP_SESSION_RD_ATTR(username_in, ISCSI_PASSWORD_IN); 1442 SETUP_SESSION_RD_ATTR(username_in, ISCSI_PASSWORD_IN);
1443 SETUP_SESSION_RD_ATTR(fast_abort, ISCSI_FAST_ABORT);
1442 SETUP_PRIV_SESSION_RD_ATTR(recovery_tmo); 1444 SETUP_PRIV_SESSION_RD_ATTR(recovery_tmo);
1443 1445
1444 BUG_ON(count > ISCSI_SESSION_ATTRS); 1446 BUG_ON(count > ISCSI_SESSION_ATTRS);