All of
 help / color / mirror / Atom feed
From: Bart Van Assche <>
Subject: [PATCH 07/16] RDMA/srpt: Fix handling of TMF submission failure
Date: Fri, 25 Jan 2019 18:34:49 +0000	[thread overview]
Message-ID: <> (raw)

If submitting a TMF to the target core fails, send the "FUNCTION
REJECTED" response to the initiator.

Reviewed-by: Hannes Reinecke <>
Cc: Doug Ledford <>
Cc: Jason Gunthorpe <>
Cc: Nicholas Bellinger <>
Cc: Mike Christie <>
Cc: Christoph Hellwig <>
Signed-off-by: Bart Van Assche <>
 drivers/infiniband/ulp/srpt/ib_srpt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index 4fc901d1c0c1..0dc2df925f76 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -1581,11 +1581,9 @@ static void srpt_handle_tsk_mgmt(struct srpt_rdma_ch *ch,
 	if (rc != 0) {
 		send_ioctx->cmd.se_tmr_req->response = TMR_FUNCTION_REJECTED;
-		goto fail;
+		cmd->se_tfo->queue_tm_rsp(cmd);
-	transport_send_check_condition_and_sense(cmd, 0, 0); // XXX:

                 reply	other threads:[~2019-01-25 18:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.