]> git.karo-electronics.de Git - linux-beck.git/commit
SUNRPC: Fix callback channel
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 7 Dec 2015 20:52:23 +0000 (12:52 -0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 7 Dec 2015 21:04:59 +0000 (13:04 -0800)
commit756b9b37cfb2e3dc76b2e43a8c097402ac736e07
tree14503068e419723d06b4c56ec6544a907ae3f85a
parent527e9316f8ec44bd53d90fb9f611fa7ffff52bb9
SUNRPC: Fix callback channel

The NFSv4.1 callback channel is currently broken because the receive
message will keep shrinking because the backchannel receive buffer size
never gets reset.
The easiest solution to this problem is instead of changing the receive
buffer, to rather adjust the copied request.

Fixes: 38b7631fbe42 ("nfs4: limit callback decoding to received bytes")
Cc: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/callback_xdr.c
net/sunrpc/backchannel_rqst.c
net/sunrpc/svc.c