]> asedeno.scripts.mit.edu Git - linux.git/commit
NFS based on file size issue sync copy or fallback to generic copy offload
authorOlga Kornievskaia <kolga@netapp.com>
Wed, 3 Jul 2019 14:38:02 +0000 (10:38 -0400)
committerOlga Kornievskaia <olga.kornievskaia@gmail.com>
Wed, 9 Oct 2019 16:06:22 +0000 (12:06 -0400)
commit1275101026b48f43e194de074b11ab04fee8b89b
tree4c692b9dc858d8b3d6fb325423b1c185bfc7bacc
parent0e65a32c8a569db363048e17a708b1a0913adbef
NFS based on file size issue sync copy or fallback to generic copy offload

For small file sizes, it make sense to issue a synchronous copy (and
save an RPC callback operation). Also, for the inter copy offload,
copy len must be larger than the cost of doing a mount between the
destination and source server (14RPCs are sent during 4.x mount).

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
fs/nfs/nfs42.h
fs/nfs/nfs42proc.c
fs/nfs/nfs4file.c