]> 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)
commitfc2534110951af48f0513b7c4f028767fada4c8e
tree31ed2d2f469d5aa1f58739d85d27cbc69a0818e9
parente02f91e505d42f0dcd4764cd216517ef7290b6b2
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: 44f8a86b5aa1 ("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