kernel_samsung_a53x/fs/nfsd
Chuck Lever 83968fd144 NFSD: Make nfsd4_rename() wait before returning NFS4ERR_DELAY
[ Upstream commit 68c522afd0b1936b48a03a4c8b81261e7597c62d ]

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>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:28:22 +01:00
..
acl.h NFSD: add posix ACLs to struct nfsd_attrs 2024-11-19 12:28:04 +01:00
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blocklayout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blocklayoutxdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
blocklayoutxdr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
current_stateid.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
export.c nfsd: report per-export stats 2024-11-19 12:27:31 +01:00
export.h nfsd: report per-export stats 2024-11-19 12:27:31 +01:00
fault_inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
filecache.c NFSD: Ensure nf_inode is never dereferenced 2024-11-19 12:28:01 +01:00
filecache.h NFSD: Ensure nf_inode is never dereferenced 2024-11-19 12:28:01 +01:00
flexfilelayout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flexfilelayoutxdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flexfilelayoutxdr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
idmap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
lockd.c Keep read and write fds with each nlm_file 2024-11-19 12:27:44 +01:00
Makefile NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
netns.h NFSD: limit the number of v4 clients to 1024 per 1GB of system memory 2024-11-19 12:28:02 +01:00
nfs2acl.c NFSD: use (un)lock_inode instead of fh_(un)lock for file operations 2024-11-19 12:28:04 +01:00
nfs3acl.c NFSD: use (un)lock_inode instead of fh_(un)lock for file operations 2024-11-19 12:28:04 +01:00
nfs3proc.c NFSD: Protect against send buffer overflow in NFSv3 READ 2024-11-19 12:28:22 +01:00
nfs3xdr.c NFSD: Deprecate NFS_OFFSET_MAX 2024-11-19 12:27:53 +01:00
nfs4acl.c NFSD: add posix ACLs to struct nfsd_attrs 2024-11-19 12:28:04 +01:00
nfs4callback.c NFSD: Move copy offload callback arguments into a separate structure 2024-11-19 12:28:03 +01:00
nfs4idmap.c NFSD: move from strlcpy with unused retval to strscpy 2024-11-19 12:28:21 +01:00
nfs4layouts.c NFSD: Add tracepoints to report NFSv4 callback completions 2024-11-19 12:28:22 +01:00
nfs4proc.c NFSD: Add tracepoints to report NFSv4 callback completions 2024-11-19 12:28:22 +01:00
nfs4recover.c nfsd: Propagate some error code returned by memdup_user() 2024-11-19 12:28:21 +01:00
nfs4state.c NFSD: Add a mechanism to wait for a DELEGRETURN 2024-11-19 12:28:22 +01:00
nfs4xdr.c nfsd: clean up mounted_on_fileid handling 2024-11-19 12:28:22 +01:00
nfscache.c nfsd: destroy percpu stats counters after reply cache shutdown 2024-11-19 12:27:58 +01:00
nfsctl.c nfsd: silence extraneous printk on nfsd.ko insertion 2024-11-19 12:28:02 +01:00
nfsd.h NFSD: Add a mechanism to wait for a DELEGRETURN 2024-11-19 12:28:22 +01:00
nfsfh.c NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
nfsfh.h NFSD: Remove CONFIG_NFSD_V3 2024-11-19 12:27:54 +01:00
nfsproc.c NFSD: drop fname and flen args from nfsd_create_locked() 2024-11-19 12:28:22 +01:00
nfssvc.c NFSD: move from strlcpy with unused retval to strscpy 2024-11-19 12:28:21 +01:00
nfsxdr.c SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
pnfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
state.h nfsd: remove nfsd4_prepare_cb_recall() declaration 2024-11-19 12:28:22 +01:00
stats.c nfsd: make nfsd_stats.th_cnt atomic_t 2024-11-19 12:27:50 +01:00
stats.h nfsd: make nfsd_stats.th_cnt atomic_t 2024-11-19 12:27:50 +01:00
trace.c NFSD: Add SPDX header for fs/nfsd/trace.c 2024-11-19 12:27:20 +01:00
trace.h NFSD: Add a mechanism to wait for a DELEGRETURN 2024-11-19 12:28:22 +01:00
vfs.c NFSD: Make nfsd4_rename() wait before returning NFS4ERR_DELAY 2024-11-19 12:28:22 +01:00
vfs.h NFSD: drop fname and flen args from nfsd_create_locked() 2024-11-19 12:28:22 +01:00
xdr.h SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
xdr3.h SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
xdr4.h NFSD: Fix handling of oversized NFSv4 COMPOUND requests 2024-11-19 12:28:22 +01:00
xdr4cb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00