mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
NFS: Avoid changing nlink when file removes and attribute updates race
If a file removal races with another operation that updates its
attributes, then skip the change to nlink, and just mark the attributes
as being stale.
Reported-by: Aiden Lambert <alambert48@gatech.edu>
Fixes: 59a707b0d4 ("NFS: Ensure we revalidate the inode correctly after remove or rename")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
6a23ae0a96
commit
bd4928ec79
1 changed files with 13 additions and 6 deletions
19
fs/nfs/dir.c
19
fs/nfs/dir.c
Loading…
Add table
Add a link
Reference in a new issue