* Patch "iser-target: Fix session hang in case of an rdma read DIF error" has been added to the 3.19-stable tree
@ 2015-05-02 16:55 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2015-05-02 16:55 UTC (permalink / raw)
To: sagig, gregkh, nab; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
iser-target: Fix session hang in case of an rdma read DIF error
to the 3.19-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iser-target-fix-session-hang-in-case-of-an-rdma-read-dif-error.patch
and it can be found in the queue-3.19 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 364189f0ada5478e4faf8a552d6071a650d757cd Mon Sep 17 00:00:00 2001
From: Sagi Grimberg <sagig@mellanox.com>
Date: Sun, 29 Mar 2015 15:52:03 +0300
Subject: iser-target: Fix session hang in case of an rdma read DIF error
From: Sagi Grimberg <sagig@mellanox.com>
commit 364189f0ada5478e4faf8a552d6071a650d757cd upstream.
This hang was a result of a missing command put when
a DIF error occurred during a rdma read (and we sent
an CHECK_CONDITION error without passing it to the
backend).
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/infiniband/ulp/isert/ib_isert.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/drivers/infiniband/ulp/isert/ib_isert.c
+++ b/drivers/infiniband/ulp/isert/ib_isert.c
@@ -1848,11 +1848,13 @@ isert_completion_rdma_read(struct iser_t
cmd->i_state = ISTATE_RECEIVED_LAST_DATAOUT;
spin_unlock_bh(&cmd->istate_lock);
- if (ret)
+ if (ret) {
+ target_put_sess_cmd(se_cmd->se_sess, se_cmd);
transport_send_check_condition_and_sense(se_cmd,
se_cmd->pi_err, 0);
- else
+ } else {
target_execute_cmd(se_cmd);
+ }
}
static void
Patches currently in stable-queue which might be from sagig@mellanox.com are
queue-3.19/target-file-fix-bug-when-config_debug_sg-y-and-dif-protection-enabled.patch
queue-3.19/target-file-fix-unmap-with-dif-protection-support.patch
queue-3.19/iser-target-fix-session-hang-in-case-of-an-rdma-read-dif-error.patch
queue-3.19/sd-unregister-integrity-profile.patch
queue-3.19/target-file-fix-sg-table-for-prot_buf-initialization.patch
queue-3.19/iser-target-fix-possible-deadlock-in-rdma_cm-connection-error.patch
queue-3.19/sd-fix-missing-ato-tag-check.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-02 16:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-02 16:55 Patch "iser-target: Fix session hang in case of an rdma read DIF error" has been added to the 3.19-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.