aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 390781894be9..e3e57cce4886 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{