SUNRPC: Fix a backchannel race
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 4 Jun 2015 19:37:10 +0000 (15:37 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 5 Jun 2015 15:15:43 +0000 (11:15 -0400)
commit0d2a970d0ae55086520e1e58e572a7acd519429c
treeb91159e4d38c5c9599cfb7500395729ced35a245
parent1dddda86c056ab4cf49e4206824a9de3e0c4159a
SUNRPC: Fix a backchannel race

We need to allow the server to send a new request immediately after we've
replied to the previous one. Right now, there is a window between the
send and the release of the old request in rpc_put_task(), where the
server could send us a new backchannel RPC call, and we have no
request to service it.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/sunrpc/xprt.h
net/sunrpc/backchannel_rqst.c
net/sunrpc/svc.c