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)
commit1ea67dbd9828278188fb846972c3c368b0ef23a1
tree7b7482905a2f1642fe565b1d7c64df443938f995
parentdb783688d4a20bae1b77c5c96a0ad3eb3079f9f6
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