lkml.org 
[lkml]   [2021]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.11 170/329] xprtrdma: rpcrdma_mr_pop() already does list_del_init()
    Date
    From: Chuck Lever <chuck.lever@oracle.com>

    [ Upstream commit 1363e6388c363d0433f9aa4e2f33efe047572687 ]

    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>
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    net/sunrpc/xprtrdma/frwr_ops.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c
    index e8b25f9290ab..0104430e4c8e 100644
    --- a/net/sunrpc/xprtrdma/frwr_ops.c
    +++ b/net/sunrpc/xprtrdma/frwr_ops.c
    @@ -582,7 +582,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);
    }
    }
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-05-17 17:30    [W:4.821 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site