From 4a4a11b98a39f479cdccef879635a72b0422049b Mon Sep 17 00:00:00 2001 From: Jayamohan Kallickal Date: Fri, 5 Apr 2013 20:38:31 -0700 Subject: [SCSI] be2iscsi : Fix the NOP-In handling code path When target send a NOP-IN with valid TTT, driver issues a NOP-OUT and the task was not freed from driver. The task list available for the session used to run out, and as no more task list were available no more iSCSI commands were exchanged on that session. This patches fixed the issue, by calling iscsi_put_task. Signed-off-by: Minh Tran Signed-off-by: John Soni Jose Signed-off-by: Jayamohan Kallickal Reviewed-by: Mike Christie Signed-off-by: James Bottomley --- drivers/scsi/be2iscsi/be_iscsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/scsi/be2iscsi/be_iscsi.c') diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index dd5beff92c61..5b64fd4b3c35 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c @@ -1005,7 +1005,8 @@ static void beiscsi_free_ep(struct beiscsi_endpoint *beiscsi_ep) beiscsi_conn = beiscsi_ep->conn; if (beiscsi_conn->login_in_progress) { - beiscsi_free_mgmt_task_handles(beiscsi_conn); + beiscsi_free_mgmt_task_handles(beiscsi_conn, + beiscsi_conn->task); beiscsi_conn->login_in_progress = 0; } } -- cgit v1.2.3-55-g7522