NFS: Fix attribute cache revalidation
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 29 Dec 2015 23:55:19 +0000 (18:55 -0500)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 1 Feb 2016 19:53:22 +0000 (14:53 -0500)
commit8572f2fa313c47750609178b20caf0598fd1042a
tree2884c2b180b05d5d1963483323c10c4ae32f255f
parent226864aff728a7253570e8dd3073ee6dc588d1de
NFS: Fix attribute cache revalidation

[ Upstream commit ade14a7df796d4e86bd9d181193c883a57b13db0 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/nfs/inode.c