OSDN Git Service

NFS: Fix excessive attribute revalidation in nfs_execute_ok()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 20 Jul 2018 20:19:35 +0000 (16:19 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 26 Jul 2018 20:25:25 +0000 (16:25 -0400)
commitcf8340277f1128c4760976d0574359e6d765893c
treeb75c763b6e0da8197a441c2e3b543b5451198da3
parent7be7b3ca16a59b8335ef2877f4696cf74f646d20
NFS: Fix excessive attribute revalidation in nfs_execute_ok()

When nfs_update_inode() sets NFS_INO_INVALID_ACCESS it is a sign that
we want to revalidate the access cache, not the inode attributes.
In fact we only want to revalidate here if we see that the mode bits
are invalid, so check for NFS_INO_INVALID_OTHER instead.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c