aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-03-05 15:46:05 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-13 16:29:12 -0400
commit40a06e755d8524cd0b24f795e8bdce5ad19fc41b (patch)
tree63e2ecb26254460fcadaaea612e5ab411625ba13 /drivers
parent4d1083509a69a36cc1394f188b7b8956e5526a16 (diff)
[SCSI] libiscsi: pass session failure a session struct
The api for conn and session failures is akward because one takes a conn from the lib and one takes a session from the class. This syncs up the interfaces to use structs from the lib. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libiscsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index d12f9794fcd0..d07017911139 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1069,10 +1069,9 @@ struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *conn, itt_t itt)
1069} 1069}
1070EXPORT_SYMBOL_GPL(iscsi_itt_to_ctask); 1070EXPORT_SYMBOL_GPL(iscsi_itt_to_ctask);
1071 1071
1072void iscsi_session_failure(struct iscsi_cls_session *cls_session, 1072void iscsi_session_failure(struct iscsi_session *session,
1073 enum iscsi_err err) 1073 enum iscsi_err err)
1074{ 1074{
1075 struct iscsi_session *session = cls_session->dd_data;
1076 struct iscsi_conn *conn; 1075 struct iscsi_conn *conn;
1077 struct device *dev; 1076 struct device *dev;
1078 unsigned long flags; 1077 unsigned long flags;
@@ -2097,7 +2096,7 @@ EXPORT_SYMBOL_GPL(iscsi_host_alloc);
2097 2096
2098static void iscsi_notify_host_removed(struct iscsi_cls_session *cls_session) 2097static void iscsi_notify_host_removed(struct iscsi_cls_session *cls_session)
2099{ 2098{
2100 iscsi_session_failure(cls_session, ISCSI_ERR_INVALID_HOST); 2099 iscsi_session_failure(cls_session->dd_data, ISCSI_ERR_INVALID_HOST);
2101} 2100}
2102 2101
2103/** 2102/**