]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Place the GETATTR operation before the CLOSE
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 17:14:44 +0000 (12:14 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 19 Dec 2016 22:30:00 +0000 (17:30 -0500)
commitd525776f63371aa4c7449c315b3905ed6a84d49e
tree0a242eade50ae70e62a6dc3a5bc223e255cc4450
parentff04742ed47e321d4bfe736d00c2130cdff3ff10
NFSv4: Place the GETATTR operation before the CLOSE

In order to benefit from the DENY share lock protection, we should
put the GETATTR operation before the CLOSE. Otherwise, we might race
with a Windows machine that thinks it is now safe to modify the file.

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