]> git.baikalelectronics.ru Git - kernel.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)
commit38673722293e2b649fd95e7a386cbdbac5e5c88e
tree14503068e419723d06b4c56ec6544a907ae3f85a
parent0d6307f0ff0e2b8c4dd21c0e87811f2d16d3c4ce
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: b846d38f1be5 ("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