NFS recover from destination server reboot for copies
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 13 Aug 2018 19:33:01 +0000 (15:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 13 Aug 2018 21:04:23 +0000 (17:04 -0400)
commite4648aa4f98a87cf0a83f73a5864cede073053a0
treec6e48236e743a8be03bf7062d33e98d8e550aecb
parent6b8d84e2f1299a5876ed812b137c49686cc85c7c
NFS recover from destination server reboot for copies

Mark the destination state to indicate a server-side copy is
happening. On detecting a reboot and recovering open state check
if any state is engaged in a server-side copy, if so, find the
copy and mark it and then signal the waiting thread. Upon wakeup,
if copy was marked then propage EAGAIN to the nfsd_copy_file_range
and restart the copy from scratch.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs42proc.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4file.c
fs/nfs/nfs4state.c
include/linux/nfs_fs.h