diff options
Diffstat (limited to 'net/sunrpc/backchannel_rqst.c')
-rw-r--r-- | net/sunrpc/backchannel_rqst.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sunrpc/backchannel_rqst.c b/net/sunrpc/backchannel_rqst.c index 651f49ab601f..9dd0ea8db463 100644 --- a/net/sunrpc/backchannel_rqst.c +++ b/net/sunrpc/backchannel_rqst.c | |||
@@ -309,12 +309,15 @@ void xprt_complete_bc_request(struct rpc_rqst *req, uint32_t copied) | |||
309 | struct rpc_xprt *xprt = req->rq_xprt; | 309 | struct rpc_xprt *xprt = req->rq_xprt; |
310 | struct svc_serv *bc_serv = xprt->bc_serv; | 310 | struct svc_serv *bc_serv = xprt->bc_serv; |
311 | 311 | ||
312 | spin_lock(&xprt->bc_pa_lock); | ||
313 | list_del(&req->rq_bc_pa_list); | ||
314 | spin_unlock(&xprt->bc_pa_lock); | ||
315 | |||
312 | req->rq_private_buf.len = copied; | 316 | req->rq_private_buf.len = copied; |
313 | set_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); | 317 | set_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); |
314 | 318 | ||
315 | dprintk("RPC: add callback request to list\n"); | 319 | dprintk("RPC: add callback request to list\n"); |
316 | spin_lock(&bc_serv->sv_cb_lock); | 320 | spin_lock(&bc_serv->sv_cb_lock); |
317 | list_del(&req->rq_bc_pa_list); | ||
318 | list_add(&req->rq_bc_list, &bc_serv->sv_cb_list); | 321 | list_add(&req->rq_bc_list, &bc_serv->sv_cb_list); |
319 | wake_up(&bc_serv->sv_cb_waitq); | 322 | wake_up(&bc_serv->sv_cb_waitq); |
320 | spin_unlock(&bc_serv->sv_cb_lock); | 323 | spin_unlock(&bc_serv->sv_cb_lock); |