]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: call nfs4_put_deleg_lease outside of state_lock
authorJeff Layton <jlayton@primarydata.com>
Sat, 9 Aug 2014 14:22:41 +0000 (10:22 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 17 Aug 2014 16:00:14 +0000 (12:00 -0400)
commite7b31392c66574d0b7973a9d9e16789b49f65866
treed5b1adf4fd21730c7ac49a82a43890ba3e694a37
parentdb94767949c096d156eb4156070f4cc37a54ab60
nfsd: call nfs4_put_deleg_lease outside of state_lock

Currently, we hold the state_lock when releasing the lease. That's
potentially problematic in the future if we allow for setlease methods
that can sleep. Move the nfs4_put_deleg_lease call out of the delegation
unhashing routine (which was always a bit goofy anyway), and into the
unlocked sections of the callers of unhash_delegation_locked.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c