locks: move locks_free_lock calls in do_fcntl_add_lease outside spinlock
authorJeff Layton <jlayton@primarydata.com>
Mon, 11 Aug 2014 22:14:12 +0000 (18:14 -0400)
committerJeff Layton <jlayton@primarydata.com>
Thu, 14 Aug 2014 14:07:47 +0000 (10:07 -0400)
commit2dfb928f7e5977a3faac943c134bbda5ae492629
treee67a1dbe831cdad50617474427bdb3d8424ab966
parented9814d85810c27670987b40c77e8a07105838fe
locks: move locks_free_lock calls in do_fcntl_add_lease outside spinlock

There's no need to call locks_free_lock here while still holding the
i_lock. Defer that until the lock has been dropped.

Acked-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
fs/locks.c