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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.20.1




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux