Simplify the RPC client socket transmit code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | SUNRPC: Convert xs_send_kvec() to use iov_iter_kvec()net/ | +23 | 0 replies | |
| 2/4 | SUNRPC: Convert socket page send code to use iov_iter()net/ net/ | +14 | 0 replies | |
| 3/4 | SUNRPC: Further cleanups of xs_sendpages()net/ | +1 | 0 replies | |
| 4/4 | SUNRPC: Remove the redundant 'zerocopy' argument to xs_sendpages()net/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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