]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Move the call to xprt_send_pagedata() out of xprt_sock_sendmsg()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 02:51:58 +0000 (22:51 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 20:20:01 +0000 (16:20 -0400)
commita981f974565f2d1ee7d34fff708d6cdaae463c50
tree31ed2d2f469d5aa1f58739d85d27cbc69a0818e9
parent02548eac64e1cc4d6a8d19f90776567394b7f059
SUNRPC: Move the call to xprt_send_pagedata() out of xprt_sock_sendmsg()

The client and server have different requirements for their memory
allocation, so move the allocation of the send buffer out of the socket
send code that is common to both.

Reported-by: NeilBrown <neilb@suse.de>
Fixes: 1a33e22b8f03 ("SUNRPC: Make the rpciod and xprtiod slab allocation modes consistent")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/socklib.c
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c