• Olga Kornievskaia's avatar
    NFSv4: make cache consistency bitmask dynamic · 76bd5c01
    Olga Kornievskaia authored
    Client uses static bitmask for GETATTR on CLOSE/WRITE/DELEGRETURN
    and ignores the fact that it might have some attributes marked
    invalid in its cache. Compared to v3 where all attributes are
    retrieved in postop attributes, v4's cache is frequently out of
    sync and leads to standalone GETATTRs being sent to the server.
    
    Instead, in addition to the minimum cache consistency attributes
    also check cache_validity and adjust the GETATTR request accordingly.
    Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    76bd5c01
nfs4proc.c 276 KB