[squash with: nfs41: Add backchannel processing support to RPC state machine] Signed-off-by: Ricardo Labiaga <Ricardo.Labiaga@xxxxxxxxxx> --- net/sunrpc/xprt.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index a8c6e8c..23c623b 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -1002,11 +1002,14 @@ void xprt_release(struct rpc_task *task) { struct rpc_xprt *xprt; struct rpc_rqst *req; - int prealloc; + int is_bc_request; if (!(req = task->tk_rqstp)) return; - prealloc = bc_prealloc(req); /* Preallocated backchannel request? */ + + /* Preallocated backchannel request? */ + is_bc_request = bc_prealloc(req); + xprt = req->rq_xprt; rpc_count_iostats(task); spin_lock_bh(&xprt->transport_lock); @@ -1030,7 +1033,7 @@ void xprt_release(struct rpc_task *task) * Early exit if this is a backchannel preallocated request. * There is no need to have it added to the RPC slot list. */ - if (prealloc) + if (is_bc_request) return; memset(req, 0, sizeof(*req)); /* mark unused */ -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html