]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit313df4a4ad94720ac65930e550ec8284f17097f3
tree527ed8c84389c0d3d92c03a9256024b1f5f3919b
parentc52ce17f20179bafeaf7f8610333a0c2d3bab8d1
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