NFS: Fix attribute cache revalidation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 29 Dec 2015 23:55:19 +0000 (18:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 20:01:18 +0000 (12:01 -0800)
commit1873e6f486061eb93dc82a85fa8030857833d485
treef88c035eb936131a160a7022f1e37592099ffe94
parentdadfe92207503548d60a2d4c6c467702ead17148
NFS: Fix attribute cache revalidation

commit ade14a7df796d4e86bd9d181193c883a57b13db0 upstream.

If a NFSv4 client uses the cache_consistency_bitmask in order to
request only information about the change attribute, timestamps and
size, then it has not revalidated all attributes, and hence the
attribute timeout timestamp should not be updated.

Reported-by: Donald Buczek <buczek@molgen.mpg.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/inode.c