diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-09-24 12:46:12 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-13 09:28:59 -0400 |
commit | 8e12452549ba2dfa17db97bc495172fac221a7ab (patch) | |
tree | 6f1617afb90ad9e5c50698d39bcb2c850feece6a /drivers/scsi/libiscsi.c | |
parent | 21536062d98938dfcfbae593a26c154e359749dc (diff) |
[SCSI] libiscsi: rename host reset to target reset
I had this in my patchset to add target reset support, but
it got dropped due to patching conflicts. This initial patch
just renames the function and users. We are actually just
dropping the session, and so this does not have anything to do
with the host exactly. It does for software iscsi because
we allocate a host per session, but for cxgb3i this makes no
sense.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r-- | drivers/scsi/libiscsi.c | 10 |
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 | } |
1368 | EXPORT_SYMBOL_GPL(iscsi_session_recovery_timedout); | 1368 | EXPORT_SYMBOL_GPL(iscsi_session_recovery_timedout); |
1369 | 1369 | ||
1370 | int iscsi_eh_host_reset(struct scsi_cmnd *sc) | 1370 | int 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) { |
1383 | failed: | 1383 | failed: |
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 | } |
1418 | EXPORT_SYMBOL_GPL(iscsi_eh_host_reset); | 1418 | EXPORT_SYMBOL_GPL(iscsi_eh_target_reset); |
1419 | 1419 | ||
1420 | static void iscsi_tmf_timedout(unsigned long data) | 1420 | static void iscsi_tmf_timedout(unsigned long data) |
1421 | { | 1421 | { |