diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-09-24 12:46:14 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-13 09:29:01 -0400 |
commit | 87cd9eab2dfbdf7d367d7ab30e88176d7b08b83e (patch) | |
tree | 7fdb4fadf57405e1e2b596c927c1f7df25aa028c /drivers/scsi/libiscsi.c | |
parent | 6f481e3cefeb33094e87af176587e6a3027f104e (diff) |
libiscsi: check reason why we are stopping iscsi session to determine error value
Some wires got crossed on some patches and I messed up in the code
below when rebuilding a patch. We want to be checking if flag
equaled the value indicating if we killing the session due to
final logout or if we just trying to relogin.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index e3e57cce4886..5aa0db150436 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -2453,7 +2453,7 @@ static void iscsi_start_session_recovery(struct iscsi_session *session, | |||
2453 | * flush queues. | 2453 | * flush queues. |
2454 | */ | 2454 | */ |
2455 | spin_lock_bh(&session->lock); | 2455 | spin_lock_bh(&session->lock); |
2456 | if (STOP_CONN_RECOVER) | 2456 | if (flag == STOP_CONN_RECOVER) |
2457 | fail_all_commands(conn, -1, DID_TRANSPORT_DISRUPTED); | 2457 | fail_all_commands(conn, -1, DID_TRANSPORT_DISRUPTED); |
2458 | else | 2458 | else |
2459 | fail_all_commands(conn, -1, DID_ERROR); | 2459 | fail_all_commands(conn, -1, DID_ERROR); |