NFS add support for asynchronous COPY
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 9 Jul 2018 19:13:31 +0000 (15:13 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 9 Aug 2018 16:56:39 +0000 (12:56 -0400)
commit62164f317972fcd36590578888f33a1994dda519
tree24608dd5c9a8cd89f5bb16325e21b44d7064acb3
parent67aa7444c4beb40aafedd8d2c60bbcc54987adda
NFS add support for asynchronous COPY

Change xdr to always send COPY asynchronously.

Keep the list copies send in a list under a server structure.
Once copy is sent, it waits on a completion structure that will
be signalled by the callback thread that receives CB_OFFLOAD.

If CB_OFFLOAD returned an error and even if it returned partial
bytes, ignore them (as we can't commit without a verifier to
match) and return an error.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/callback_proc.c
fs/nfs/client.c
fs/nfs/nfs42proc.c
fs/nfs/nfs42xdr.c
include/linux/nfs_fs.h
include/linux/nfs_fs_sb.h
include/linux/nfs_xdr.h