]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Ensure the bvecs are reset when we re-encode the RPC request
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Jul 2019 01:22:38 +0000 (21:22 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Jul 2019 18:43:52 +0000 (14:43 -0400)
commit9a5ea1c724240cc96167ca9cb9753b8f0c818235
tree348fdb310218b444e10e0d88ebfef28c2e9242a0
parent05b1ea4ece847523937bbbf0fed9b12c9ae4058e
SUNRPC: Ensure the bvecs are reset when we re-encode the RPC request

The bvec tracks the list of pages, so if the number of pages changes
due to a re-encode, we need to reset the bvec as well.

Fixes: 92cea4b1584d ("SUNRPC: Simplify TCP receive code by switching...")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.20+
net/sunrpc/clnt.c
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c