mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
NFS: Avoid changing nlink when file removes and attribute updates race
[ Upstream commitbd4928ec79] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
530f1ba287
commit
f0f456c327
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