]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Always provide a write list when sending NFS READ
authorChuck Lever <chuck.lever@oracle.com>
Fri, 5 Jun 2015 15:25:25 +0000 (11:25 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:59 +0000 (14:45 -0600)
commitf1b48414276ab7b18aaa4e322ef0ee59dc909047
tree364fe18b39eaaedb2671db0a122df7fae9657083
parent0bc64bc239dccf91c49cd68cd2b5a32f57335ec3
xprtrdma: Always provide a write list when sending NFS READ

[ Queued for upstream v4.3 ]

The client has been setting up a reply chunk for NFS READs that are
smaller than the inline threshold. This is not efficient: both the
server and client CPUs have to copy the reply's data payload into
and out of the memory region that is then transferred via RDMA.

Using the write list, the data payload is moved by the device and no
extra data copying is necessary.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Devesh Sharma <devesh.sharma@avagotech.com>
Reviewed-By: Sagi Grimberg <sagig@mellanox.com>
Tested-by: Devesh Sharma <devesh.sharma@avagotech.com>
net/sunrpc/xprtrdma/rpc_rdma.c