Skip to content

Commit

Permalink
xprtrdma: rpcrdma_mr_pop() already does list_del_init()
Browse files Browse the repository at this point in the history
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: 8475689 ("xprtrdma: Remove fr_state")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
  • Loading branch information
chucklever authored and Trond Myklebust committed Apr 26, 2021
1 parent c35ca60 commit 1363e63
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/sunrpc/xprtrdma/frwr_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
frwr_mr_recycle(mr);
}
}
Expand Down

0 comments on commit 1363e63

Please sign in to comment.