• Trond Myklebust's avatar
    NFS: Clear the file access cache upon login · 0eb43812
    Trond Myklebust authored
    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: default avatarBenjamin Coddington <bcodding@redhat.com>
    Tested-by: default avatarBenjamin Coddington <bcodding@redhat.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    0eb43812
dir.c 84.8 KB