aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2007-12-13 12:43:26 -0600
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-11 18:28:28 -0600
commitb3a7ea8d50f6028964b468d13a095dfb2508b2fb (patch)
tree47cc070e1761208e7e6448a0eb8ca3567e27a462 /drivers/infiniband
parent6320377fd94316e58f75d0be6f6e7a644950a4ee (diff)
downloadkernel_samsung_smdk4412-b3a7ea8d50f6028964b468d13a095dfb2508b2fb.zip
kernel_samsung_smdk4412-b3a7ea8d50f6028964b468d13a095dfb2508b2fb.tar.gz
kernel_samsung_smdk4412-b3a7ea8d50f6028964b468d13a095dfb2508b2fb.tar.bz2
[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/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iser_initiator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_initiator.c b/drivers/infiniband/ulp/iser/iser_initiator.c
index a6f2303..47f716c 100644
--- a/drivers/infiniband/ulp/iser/iser_initiator.c
+++ b/drivers/infiniband/ulp/iser/iser_initiator.c
@@ -621,9 +621,7 @@ void iser_snd_completion(struct iser_desc *tx_desc)
struct iscsi_session *session = conn->session;
spin_lock(&conn->session->lock);
- list_del(&mtask->running);
- __kfifo_put(session->mgmtpool.queue, (void*)&mtask,
- sizeof(void*));
+ iscsi_free_mgmt_task(conn, mtask);
spin_unlock(&session->lock);
}
}