diff options
| author | Jimmy Zuber <jamz@amazon.com> | 2026-09-22 17:56:56 +0000 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2026-09-24 15:29:06 -0400 |
| commit | 211cda4fdf33011cee39f8970c4625b207142d6b (patch) | |
| tree | 8e1952d985cb5ba37ef13f119f04de9771b7f6a3 /scripts/Makefile.thinlto | |
| parent | 72233aabc78cd0415c850641bc2a6e4fea23173f (diff) | |
| download | linux-211cda4fdf33011cee39f8970c4625b207142d6b.tar.gz linux-211cda4fdf33011cee39f8970c4625b207142d6b.zip | |
NFS: Fix stale negative cache on failed nfs_mkdir()
Since commit 8376583b84a1 ("nfs: change mkdir inode_operation to return
alternate dentry if needed"), nfs_mkdir() no longer drops the dentry on
RPC failure. A negative cache value can then result in spurious ENOENT
results for further operations within that directory, such as open or
stat.
We observed this breaking some applications where an EEXIST on mkdir
caused the application to assume the directory to exist, only to fail
operations within that directory due to the retained negative cache
entry. The other create paths, nfs_create() and nfs_mknod(), still drop
the dentry on failure. This patch restores the previous behavior.
Fixes: 8376583b84a1 ("nfs: change mkdir inode_operation to return alternate dentry if needed")
Cc: stable@vger.kernel.org # v6.15+
Signed-off-by: Jimmy Zuber <jamz@amazon.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
