aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-12-13 13:43:26 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 19:28:28 -0500
commitb3a7ea8d50f6028964b468d13a095dfb2508b2fb (patch)
tree47cc070e1761208e7e6448a0eb8ca3567e27a462 /drivers/scsi/iscsi_tcp.c
parent6320377fd94316e58f75d0be6f6e7a644950a4ee (diff)
[SCSI] libiscsi: do not block session during logout
There is not need to block the session during logout. Since we are going to fail the commands that were blocked just fail them immediately instead. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index f79a457099e6..90eae8e0d978 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -1349,9 +1349,7 @@ iscsi_tcp_mtask_xmit(struct iscsi_conn *conn, struct iscsi_mgmt_task *mtask)
1349 struct iscsi_session *session = conn->session; 1349 struct iscsi_session *session = conn->session;
1350 1350
1351 spin_lock_bh(&session->lock); 1351 spin_lock_bh(&session->lock);
1352 list_del(&conn->mtask->running); 1352 iscsi_free_mgmt_task(conn, mtask);
1353 __kfifo_put(session->mgmtpool.queue, (void*)&conn->mtask,
1354 sizeof(void*));
1355 spin_unlock_bh(&session->lock); 1353 spin_unlock_bh(&session->lock);
1356 } 1354 }
1357 return 0; 1355 return 0;