]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't reuse bvec on retransmission of the request
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Jul 2022 17:02:27 +0000 (13:02 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Jul 2022 20:26:17 +0000 (16:26 -0400)
commit2ab0c95a958c2928ef11fa0a486369a28a8f9f3b
treea7d4907b5eaeba7e7e21fa8837b6e05ac3dde4ee
parented4e07d75940602ff3b3085350cb00c3b4b2144c
SUNRPC: Don't reuse bvec on retransmission of the request

If a request is re-encoded and then retransmitted, we need to make sure
that we also re-encode the bvec, in case the page lists have changed.

Fixes: fc2534110951 ("SUNRPC: Move the call to xprt_send_pagedata() out of xprt_sock_sendmsg()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c