aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c2
-rw-r--r--drivers/scsi/iscsi_tcp.c2
-rw-r--r--drivers/scsi/libiscsi.c10
-rw-r--r--include/scsi/libiscsi.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index 0474da173eb..1e5b6446231 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -598,7 +598,7 @@ static struct scsi_host_template iscsi_iser_sht = {
598 .cmd_per_lun = ISCSI_MAX_CMD_PER_LUN, 598 .cmd_per_lun = ISCSI_MAX_CMD_PER_LUN,
599 .eh_abort_handler = iscsi_eh_abort, 599 .eh_abort_handler = iscsi_eh_abort,
600 .eh_device_reset_handler= iscsi_eh_device_reset, 600 .eh_device_reset_handler= iscsi_eh_device_reset,
601 .eh_host_reset_handler = iscsi_eh_host_reset, 601 .eh_target_reset_handler= iscsi_eh_target_reset,
602 .use_clustering = DISABLE_CLUSTERING, 602 .use_clustering = DISABLE_CLUSTERING,
603 .proc_name = "iscsi_iser", 603 .proc_name = "iscsi_iser",
604 .this_id = -1, 604 .this_id = -1,
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 752f42884cc..4f096de8152 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -1909,7 +1909,7 @@ static struct scsi_host_template iscsi_sht = {
1909 .cmd_per_lun = ISCSI_DEF_CMD_PER_LUN, 1909 .cmd_per_lun = ISCSI_DEF_CMD_PER_LUN,
1910 .eh_abort_handler = iscsi_eh_abort, 1910 .eh_abort_handler = iscsi_eh_abort,
1911 .eh_device_reset_handler= iscsi_eh_device_reset, 1911 .eh_device_reset_handler= iscsi_eh_device_reset,
1912 .eh_host_reset_handler = iscsi_eh_host_reset, 1912 .eh_target_reset_handler= iscsi_eh_target_reset,
1913 .use_clustering = DISABLE_CLUSTERING, 1913 .use_clustering = DISABLE_CLUSTERING,
1914 .slave_configure = iscsi_tcp_slave_configure, 1914 .slave_configure = iscsi_tcp_slave_configure,
1915 .proc_name = "iscsi_tcp", 1915 .proc_name = "iscsi_tcp",
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 390781894be..e3e57cce488 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1367,7 +1367,7 @@ void iscsi_session_recovery_timedout(struct iscsi_cls_session *cls_session)
1367} 1367}
1368EXPORT_SYMBOL_GPL(iscsi_session_recovery_timedout); 1368EXPORT_SYMBOL_GPL(iscsi_session_recovery_timedout);
1369 1369
1370int iscsi_eh_host_reset(struct scsi_cmnd *sc) 1370int iscsi_eh_target_reset(struct scsi_cmnd *sc)
1371{ 1371{
1372 struct iscsi_cls_session *cls_session; 1372 struct iscsi_cls_session *cls_session;
1373 struct iscsi_session *session; 1373 struct iscsi_session *session;
@@ -1381,7 +1381,7 @@ int iscsi_eh_host_reset(struct scsi_cmnd *sc)
1381 spin_lock_bh(&session->lock); 1381 spin_lock_bh(&session->lock);
1382 if (session->state == ISCSI_STATE_TERMINATE) { 1382 if (session->state == ISCSI_STATE_TERMINATE) {
1383failed: 1383failed:
1384 debug_scsi("failing host reset: session terminated " 1384 debug_scsi("failing target reset: session terminated "
1385 "[CID %d age %d]\n", conn->id, session->age); 1385 "[CID %d age %d]\n", conn->id, session->age);
1386 spin_unlock_bh(&session->lock); 1386 spin_unlock_bh(&session->lock);
1387 mutex_unlock(&session->eh_mutex); 1387 mutex_unlock(&session->eh_mutex);
@@ -1396,7 +1396,7 @@ failed:
1396 */ 1396 */
1397 iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED); 1397 iscsi_conn_failure(conn, ISCSI_ERR_CONN_FAILED);
1398 1398
1399 debug_scsi("iscsi_eh_host_reset wait for relogin\n"); 1399 debug_scsi("iscsi_eh_target_reset wait for relogin\n");
1400 wait_event_interruptible(conn->ehwait, 1400 wait_event_interruptible(conn->ehwait,
1401 session->state == ISCSI_STATE_TERMINATE || 1401 session->state == ISCSI_STATE_TERMINATE ||
1402 session->state == ISCSI_STATE_LOGGED_IN || 1402 session->state == ISCSI_STATE_LOGGED_IN ||
@@ -1408,14 +1408,14 @@ failed:
1408 spin_lock_bh(&session->lock); 1408 spin_lock_bh(&session->lock);
1409 if (session->state == ISCSI_STATE_LOGGED_IN) 1409 if (session->state == ISCSI_STATE_LOGGED_IN)
1410 iscsi_session_printk(KERN_INFO, session, 1410 iscsi_session_printk(KERN_INFO, session,
1411 "host reset succeeded\n"); 1411 "target reset succeeded\n");
1412 else 1412 else
1413 goto failed; 1413 goto failed;
1414 spin_unlock_bh(&session->lock); 1414 spin_unlock_bh(&session->lock);
1415 mutex_unlock(&session->eh_mutex); 1415 mutex_unlock(&session->eh_mutex);
1416 return SUCCESS; 1416 return SUCCESS;
1417} 1417}
1418EXPORT_SYMBOL_GPL(iscsi_eh_host_reset); 1418EXPORT_SYMBOL_GPL(iscsi_eh_target_reset);
1419 1419
1420static void iscsi_tmf_timedout(unsigned long data) 1420static void iscsi_tmf_timedout(unsigned long data)
1421{ 1421{
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index 7d8cd159f59..61e53f14f7e 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -313,7 +313,7 @@ struct iscsi_host {
313 */ 313 */
314extern int iscsi_change_queue_depth(struct scsi_device *sdev, int depth); 314extern int iscsi_change_queue_depth(struct scsi_device *sdev, int depth);
315extern int iscsi_eh_abort(struct scsi_cmnd *sc); 315extern int iscsi_eh_abort(struct scsi_cmnd *sc);
316extern int iscsi_eh_host_reset(struct scsi_cmnd *sc); 316extern int iscsi_eh_target_reset(struct scsi_cmnd *sc);
317extern int iscsi_eh_device_reset(struct scsi_cmnd *sc); 317extern int iscsi_eh_device_reset(struct scsi_cmnd *sc);
318extern int iscsi_queuecommand(struct scsi_cmnd *sc, 318extern int iscsi_queuecommand(struct scsi_cmnd *sc,
319 void (*done)(struct scsi_cmnd *)); 319 void (*done)(struct scsi_cmnd *));