NFSv4: Fix handling of non-atomic change attrbute updates
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 25 Jun 2021 19:49:31 +0000 (15:49 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 26 Jun 2021 16:13:39 +0000 (12:13 -0400)
commit20cf7d4ea4ad7d9830b01ff7444f6ac64a727a23
tree527ed8c84389c0d3d92c03a9256024b1f5f3919b
parent213bb58475b57786e4336bc8bfd5029e16257c49
NFSv4: Fix handling of non-atomic change attrbute updates

If the change attribute update is declared to be non-atomic by the
server, or our cached value does not match the server's value before the
operation was performed, then we should declare the inode cache invalid.

On the other hand, if the change to the directory raced with a lookup or
getattr which already updated the change attribute, then optimise away
the revalidation.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c