Skip to content

Commit 0c8bb6e

Browse files
jinpuwangrleon
authored andcommitted
RDMA/rtrs-clt: Remove the warnings for req in_use check
As we chain the WR during write request: memory registration, rdma write, local invalidate, if only the last WR fail to send due to send queue overrun, the server can send back the reply, while client mark the req->in_use to false in case of error in rtrs_clt_req when error out from rtrs_post_rdma_write_sg. Fixes: 6a98d71 ("RDMA/rtrs: client: main functionality") Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Reviewed-by: Md Haris Iqbal <haris.iqbal@ionos.com> Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com> Link: https://lore.kernel.org/r/20231120154146.920486-8-haris.iqbal@ionos.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent 6d09f6f commit 0c8bb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/ulp/rtrs/rtrs-clt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static void complete_rdma_req(struct rtrs_clt_io_req *req, int errno,
384384
struct rtrs_clt_path *clt_path;
385385
int err;
386386

387-
if (WARN_ON(!req->in_use))
387+
if (!req->in_use)
388388
return;
389389
if (WARN_ON(!req->con))
390390
return;

0 commit comments

Comments
 (0)