[PATCH 1/2 2.6.29-rc] libiscsi - change iscsi_session_failure() to take 
iscsi_session pointer

From: Karen Xie <k...@chelsio.com>

change iscsi_session_failure() to take a pointer to iscsi_session instead of 

Signed-off-by: Mike Christie<micha...@cs.wisc.edu>
Signed-off-by: Karen Xie <k...@chelsio.com>

 drivers/scsi/libiscsi.c |    5 ++---
 include/scsi/libiscsi.h |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 809d32d..5ad87e8 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1034,10 +1034,9 @@ struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn 
*conn, itt_t itt)
-void iscsi_session_failure(struct iscsi_cls_session *cls_session,
+void iscsi_session_failure(struct iscsi_session *session,
                           enum iscsi_err err)
-       struct iscsi_session *session = cls_session->dd_data;
        struct iscsi_conn *conn;
        struct device *dev;
        unsigned long flags;
@@ -2043,7 +2042,7 @@ EXPORT_SYMBOL_GPL(iscsi_host_alloc);
 static void iscsi_notify_host_removed(struct iscsi_cls_session *cls_session)
-       iscsi_session_failure(cls_session, ISCSI_ERR_INVALID_HOST);
+       iscsi_session_failure(cls_session->dd_data, ISCSI_ERR_INVALID_HOST);
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index 7360e19..07c3cd3 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -382,7 +382,7 @@ extern void iscsi_conn_stop(struct iscsi_cls_conn *, int);
 extern int iscsi_conn_bind(struct iscsi_cls_session *, struct iscsi_cls_conn *,
 extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err);
-extern void iscsi_session_failure(struct iscsi_cls_session *cls_session,
+extern void iscsi_session_failure(struct iscsi_session *session,
                                  enum iscsi_err err);
 extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn,
                                enum iscsi_param param, char *buf);

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at http://groups.google.com/group/open-iscsi

Reply via email to