aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libiscsi.c5
-rw-r--r--include/scsi/libiscsi.h2
2 files changed, 3 insertions, 4 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/**
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index 84eded91b945..7ffaed2f94dd 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -378,7 +378,7 @@ extern void iscsi_conn_stop(struct iscsi_cls_conn *, int);
378extern int iscsi_conn_bind(struct iscsi_cls_session *, struct iscsi_cls_conn *, 378extern int iscsi_conn_bind(struct iscsi_cls_session *, struct iscsi_cls_conn *,
379 int); 379 int);
380extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err); 380extern void iscsi_conn_failure(struct iscsi_conn *conn, enum iscsi_err err);
381extern void iscsi_session_failure(struct iscsi_cls_session *cls_session, 381extern void iscsi_session_failure(struct iscsi_session *session,
382 enum iscsi_err err); 382 enum iscsi_err err);
383extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, 383extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn,
384 enum iscsi_param param, char *buf); 384 enum iscsi_param param, char *buf);