Skip to content

Simplify the RPC client socket transmit code

Trond Myklebust linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4SUNRPC: Convert xs_send_kvec() to use iov_iter_kvec()net/sunrpc/xprtsock.c+23 -150 replies
2/4SUNRPC: Convert socket page send code to use iov_iter()net/sunrpc/xprt.c net/sunrpc/xprtsock.c+14 -360 replies
3/4SUNRPC: Further cleanups of xs_sendpages()net/sunrpc/xprtsock.c+1 -100 replies
4/4SUNRPC: Remove the redundant 'zerocopy' argument to xs_sendpages()net/sunrpc/xprtsock.c+4 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Simplify the RPC client socket transmit code

Simplify the RPC socket transmission code by switching to using the iov_iter functionality. The main gain is that we avoid the need to take the socket lock on each call to sendpage(): in the common case of a 1MB WRITE rpc call using 4k page sizes, that means we go from 256 calls to sendpage(), each of which takes the socket lock and releases it, to just 1 call to sock_sendmsg().

Trond Myklebust (4):
SUNRPC: Convert xs_send_kvec() to use iov_iter_kvec()
SUNRPC: Convert socket page send code to use iov_iter()
SUNRPC: Further cleanups of xs_sendpages()
SUNRPC: Remove the redundant 'zerocopy' argument to xs_sendpages()

 net/sunrpc/xprt.c     |   1 +
 net/sunrpc/xprtsock.c | 106 +++++++++++++++---------------------------
 2 files changed, 38 insertions(+), 69 deletions(-)
Signature · 1 line
2.20.1