summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorRoberto Bergantinos Corpas <rbergant@redhat.com>2026-04-21 12:00:46 +0200
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-10-12 16:28:08 -0400
commit8c955dacf45f8964b98f26910ffecb5e26c02e31 (patch)
treea5061402f05abc4ec6a85993221da136dd05e901 /tools/lib/python
parent0b5bb4e586f7b0a449f4d90a524f76a3be5db355 (diff)
downloadlinux-next-8c955dacf45f8964b98f26910ffecb5e26c02e31.tar.gz
linux-next-8c955dacf45f8964b98f26910ffecb5e26c02e31.zip
nfs: set gencount on protocol-specific remove
commit bd4928ec799b ("NFS: Avoid changing nlink when file removes and attribute updates race") avoids races on attribute cache with any inflight RPC that may modify inode attributes (and gencount) during i.e. REMOVE. However it does not take into account that REMOVE may trigger a delegation return which also advances gencount (via the attribute refresh during delegation return), and in that case the gencount mismatch is not due to an inflight RPC that already reflected the removal. Push the setting of gencount under each version-specific layer, reordering correctly for nfsv4 case after the delegation returns. This fixes LTP/inotify04 failure after bd4928ec799b. Fixes: bd4928ec799b ("NFS: Avoid changing nlink when file removes and attribute updates race") Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions