FAILED: patch "[PATCH] iser-target: Fix identification of login rx descriptor type" failed to apply to 3.14-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 3.14-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
b89a7c25462b164db280abc3b05d4d9d888d40e9Mon Sep 17 00:00:00 2001
From: Jenny Derzhavetz <[email protected]>
Date: Wed, 24 Feb 2016 19:23:58 +0200
Subject: [PATCH] iser-target: Fix identification of login rx descriptor type
Once connection request is accepted, one rx descriptor is posted to receive login request. This descriptor has rx type, but is outside the main pool of rx descriptors, and thus was mistreated as tx type.
Signed-off-by Jenny Derzhavetz <[email protected]>
Signed-off-by Sagi Grimberg <[email protected]>
Cc [email protected] # v3.10+
Signed-off-by Nicholas Bellinger <[email protected]>
drivers/infiniband/ulp/isert/ib_isert.c +2 -1
@@ -2048,7 +2048,8 @@ is_isert_tx_desc(struct isert_conn *isert_conn, void *wr_id)void *start = isert_conn->rx_descs;int len =ISERT_QP_MAX_RECV_DTOS *sizeof (*isert_conn->rx_descs); -if (wr_id >= start && wr_id < start + len) +if ((wr_id >= start && wr_id < start + len) || + (wr_id == isert_conn->login_req_buf))return false;return true;