diff mbox series

[v1,1/6] xprtrdma: rpcrdma_mr_pop() already does list_del_init()

Message ID 161764049336.29855.1836712073865697630.stgit@manet.1015granger.net (mailing list archive)
State New
Headers show
Series More xprtrdma fixes | expand

Commit Message

Chuck Lever III April 5, 2021, 4:34 p.m. UTC
The rpcrdma_mr_pop() earlier in the function has already cleared
out mr_list, so it must not be done again in the error path.

Fixes: 847568942f93 ("xprtrdma: Remove fr_state")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
 net/sunrpc/xprtrdma/frwr_ops.c |    1 -
 1 file changed, 1 deletion(-)
diff mbox series


diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c
index 132df9b59ab4..aca2228095db 100644
--- a/net/sunrpc/xprtrdma/frwr_ops.c
+++ b/net/sunrpc/xprtrdma/frwr_ops.c
@@ -576,7 +576,6 @@  void frwr_unmap_sync(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req)
 		mr = container_of(frwr, struct rpcrdma_mr, frwr);
 		bad_wr = bad_wr->next;
-		list_del_init(&mr->mr_list);