]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Fix large NFS SYMLINK calls
authorChuck Lever <chuck.lever@oracle.com>
Sat, 6 Dec 2014 04:45:06 +0000 (23:45 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:59 +0000 (14:45 -0600)
commit3be3d9e25ec192e2e56a479bd1c5c68e8485bfc1
tree0e5a25d162c5427dbdc7846846e58e8c217fc7d2
parent7d5ce57a6390bcc00ac359b5d6d52bd846ab759d
xprtrdma: Fix large NFS SYMLINK calls

[ Queued for upstream v4.3 ]

Repair how rpcrdma_marshal_req() chooses which RDMA message type
to use for large non-WRITE operations so that it picks RDMA_NOMSG
in the correct situations, and sets up the marshaling logic to
SEND only the RPC/RDMA header.

Large NFSv2 SYMLINK requests now use RDMA_NOMSG calls. The Linux NFS
server XDR decoder for NFSv2 SYMLINK does not handle having the
pathname argument arrive in a separate buffer. The decoder could be
fixed, but this is simpler and RDMA_NOMSG can be used in a variety
of other situations.

Ensure that the Linux client continues to use "RDMA_MSG + read
list" when sending large NFSv3 SYMLINK requests, which is more
efficient than using RDMA_NOMSG.

Large NFSv4 CREATE(NF4LNK) requests are changed to use "RDMA_MSG +
read list" just like NFSv3 (see Section 5 of RFC 5667). Before,
these did not work at all.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Devesh Sharma <devesh.sharma@avagotech.com>
fs/nfs/nfs3xdr.c
fs/nfs/nfs4xdr.c
net/sunrpc/xprtrdma/rpc_rdma.c