]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d709d49a11c6da2731e464f2c3b88341e0ac9bb
treeb75c763b6e0da8197a441c2e3b543b5451198da3
parent97360ff9ed736cb6ca4dc8cef06f9f2263b4fa14
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