]> git.ipfire.org Git - thirdparty/kernel/linux.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)
commit72691a269f0baad6d5f4aa7af97c29081b86d70f
treea7d4907b5eaeba7e7e21fa8837b6e05ac3dde4ee
parent6622e3a73112fc336c1c2c582428fb5ef18e456a
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: ff053dbbaffe ("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