Skip to content

Commit

Permalink
SUNRPC: xprt_complete_bc_request must also decrement the free slot count
Browse files Browse the repository at this point in the history
Calling xprt_complete_bc_request() effectively causes the slot to be allocated,
so it needs to decrement the backchannel free slot count as well.

Fixes: 0d2a970 ("SUNRPC: Fix a backchannel race")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Trond Myklebust committed Jul 22, 2015
1 parent 6851447 commit 1980bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/backchannel_rqst.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void xprt_complete_bc_request(struct rpc_rqst *req, uint32_t copied)

spin_lock(&xprt->bc_pa_lock);
list_del(&req->rq_bc_pa_list);
xprt->bc_alloc_count--;
xprt_dec_alloc_count(xprt, 1);
spin_unlock(&xprt->bc_pa_lock);

req->rq_private_buf.len = copied;
Expand Down

0 comments on commit 1980bd4

Please sign in to comment.