]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: Clear the file access cache upon login
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 26 Aug 2022 23:44:44 +0000 (19:44 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 28 Nov 2022 03:09:59 +0000 (22:09 -0500)
commit0eb43812c0270ee3d005ff32f91f7d0a6c4943af
treee6dedf0052fee04071da4e7e65e7a733a90f9839
parentb7b275e60bcd5f89771e865a8239325f86d9927d
NFS: Clear the file access cache upon login

POSIX typically only refreshes the user's supplementary group
information upon login. Since NFS servers may often refresh their
concept of the user supplementary group membership at their own cadence,
it is possible for the NFS client's access cache to become stale due to
the user's group membership changing on the server after the user has
already logged in on the client.
While it is reasonable to expect that such group membership changes are
rare, and that we do not want to optimise the cache to accommodate them,
it is also not unreasonable for the user to expect that if they log out
and log back in again, that the staleness would clear up.

Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Tested-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c
include/linux/nfs_fs.h