]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sunrpc: set the bv_offset of first bvec in svc_tcp_sendmsg
authorJeff Layton <jlayton@kernel.org>
Mon, 14 Aug 2023 17:36:54 +0000 (13:36 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Aug 2023 19:02:25 +0000 (15:02 -0400)
commitc96e2a695e00bca5487824d84b85aab6aa2c1891
tree95edc78c1a0fdfd77e6f52575149ef541371a58c
parent2ccdd1b13c591d306f0401d98dedc4bdcd02b421
sunrpc: set the bv_offset of first bvec in svc_tcp_sendmsg

svc_tcp_sendmsg used to factor in the xdr->page_base when sending pages,
but commit 5df5dd03a8f7 ("sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather
then sendpage") dropped that part of the handling. Fix it by setting
the bv_offset of the first bvec.

Fixes: 5df5dd03a8f7 ("sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svcsock.c