It is indeed a problem upstream, so we need to first find a proper
solution there. As a heads up, it will take a bit.

From my understanding and your comment here 
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2178273/comments/5 :
_nfs4_proc_getattr() installs the directory delegation before 
nfs_update_inode() processes the GETATTR reply. nfs_update_inode() then sees 
the delegation and skips nfs_force_lookup_revalidate(), so negative dentries 
cached before the grant stay valid indefinitely.

We have I feel 2 options here:
Fix 1 (small, easy to backport): in _nfs4_proc_getattr(), if the reply's change 
attribute differs from the cached one, call nfs_force_lookup_revalidate() 
before installing the delegation.

Fix 2 (larger refactor): install the delegation in
__nfs_revalidate_inode() after nfs_refresh_inode(), so the normal
invalidation path runs.

I'll let George take it from here.

** Also affects: linux (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Tenacious)
   Importance: Undecided
       Status: Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2178273

Title:
  NFSv4.2 client returns ENOENT indefinitely for a file created by
  another client once it holds a directory delegation

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2178273/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to