]> 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)
commitdc377adedb60c16537a8095b53b268c2a640137a
tree0a242eade50ae70e62a6dc3a5bc223e255cc4450
parenta5baf4b4cd762424e2158e79dcbdb0049f6c526b
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