]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ff973cc549c88579276a8e4436f216518b3cd2d
treec6e48236e743a8be03bf7062d33e98d8e550aecb
parent3abfa7f5034cd473d8bc2fdc6da6f3606e4fc8c7
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