]> 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)
commit8a0b9f58b09447e70f9dc5b91b49fa6cc7c57750
tree14503068e419723d06b4c56ec6544a907ae3f85a
parent90b965f5f1bd8085fe2b7b65a002cde58a4b9162
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: 5a3f24c3881c ("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