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)
commitafbda402a02bde74f350ff98243265dfd3108fb3
treed5b1adf4fd21730c7ac49a82a43890ba3e694a37
parent6bcc034eac79873468cdfd1ccea9f25ee67c4500
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