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>
Showing
- fs/nfs/nfs42proc.c 13 additions, 3 deletionsfs/nfs/nfs42proc.c
- fs/nfs/nfs4_fs.h 3 additions, 0 deletionsfs/nfs/nfs4_fs.h
- fs/nfs/nfs4file.c 7 additions, 2 deletionsfs/nfs/nfs4file.c
- fs/nfs/nfs4state.c 16 additions, 0 deletionsfs/nfs/nfs4state.c
- include/linux/nfs_fs.h 2 additions, 0 deletionsinclude/linux/nfs_fs.h
Please register or sign in to comment