NFS: Fix attribute cache revalidation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 29 Dec 2015 23:55:19 +0000 (18:55 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Feb 2016 10:34:06 +0000 (10:34 +0000)
commit4ac492979f1fd87e63208119b4a34e8b114a3db4
tree1796ba643bb3aa861dc4b469e77ce7d59c814c32
parent4d80d6bd2d48bd4c1967aa6bdc0e10cfa7108a4b
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/inode.c