]> git.karo-electronics.de Git - linux-beck.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)
commitd8d849835eb2082ea17655538a83fa467633927f
tree0a242eade50ae70e62a6dc3a5bc223e255cc4450
parent9413a1a1bf5d58db610e3d9ba500f4150afa55ad
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