Chuck Lever 68c522afd0 NFSD: Make nfsd4_rename() wait before returning NFS4ERR_DELAY
nfsd_rename() can kick off a CB_RECALL (via
vfs_rename() -> leases_conflict()) if a delegation is present.
Before returning NFS4ERR_DELAY, give the client holding that
delegation a chance to return it and then retry the nfsd_rename()
again, once.

This version of the patch handles renaming an existing file,
but does not deal with renaming onto an existing file. That
case will still always trigger an NFS4ERR_DELAY.

Link: https://bugzilla.linux-nfs.org/show_bug.cgi?id=354
Tested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
2022-09-26 14:02:40 -04:00
..
2022-02-02 07:49:59 -07:00
2021-12-03 18:44:06 +01:00
2021-01-25 09:36:28 -05:00
2022-08-09 14:56:49 -07:00
2022-03-11 10:25:14 -05:00
2021-10-02 15:51:10 -04:00
2022-03-11 10:25:14 -05:00
2022-02-09 09:24:40 -05:00
2021-12-13 13:42:51 -05:00
2021-12-13 13:42:51 -05:00
2018-09-25 20:34:54 -04:00