]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: move nfs4_set_lock_state call into caller
authorJeff Layton <jlayton@redhat.com>
Sat, 17 Sep 2016 22:17:37 +0000 (18:17 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 22 Sep 2016 17:56:04 +0000 (13:56 -0400)
commit4fbed92403e37a1c5a76b95a3da381f44330ebcc
tree7b7482905a2f1642fe565b1d7c64df443938f995
parentf11e24387ce643eb5fe15f712482c1875dbeb706
nfs: move nfs4_set_lock_state call into caller

We need to have this info set up before adding the waiter to the
waitqueue, so move this out of the _nfs4_proc_setlk and into the
caller. That's more efficient anyway since we don't need to do
this more than once if we end up waiting on the lock.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c