]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Ensure we always run TEST/FREE_STATEID on locks
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 22 Sep 2016 17:39:03 +0000 (13:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 27 Sep 2016 18:34:12 +0000 (14:34 -0400)
commit9c234a8d1af1d3d27043b7b1fdd37931858501b9
tree6c6b12e912a69eaba8c7a7103adde22158b44292
parent09356ea4d710f8c5aff0b2d059a1f7c8df21c5de
NFSv4.1: Ensure we always run TEST/FREE_STATEID on locks

Right now, we're only running TEST/FREE_STATEID on the locks if
the open stateid recovery succeeds. The protocol requires us to
always do so.
The fix would be to move the call to TEST/FREE_STATEID and do it
before we attempt open recovery.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c