SUNRPC: xprt_complete_bc_request must also decrement the free slot count
[firefly-linux-kernel-4.4.55.git] / net / sunrpc / backchannel_rqst.c
index 5a3b50aec397a81b2b2139c04f8a72ad648996e6..6255d141133bb0ccabc195c8b4d9bce8cbe39c51 100644 (file)
@@ -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;