locks: move i_lock acquisition into generic_*_lease handlers
authorJeff Layton <jlayton@primarydata.com>
Fri, 22 Aug 2014 22:50:48 +0000 (18:50 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 9 Sep 2014 20:01:38 +0000 (16:01 -0400)
commit2fdcb42dfa6c69c281cf62aa125a43b836f2e43a
tree6282788af9d65ff5e5392c42c108d4e600fa8730
parentc33187ff4bf39f99f6a31e619820d0ba0037bb8e
locks: move i_lock acquisition into generic_*_lease handlers

Now that we have a saner internal API for managing leases, we no longer
need to mandate that the inode->i_lock be held over most of the lease
code. Push it down into generic_add_lease and generic_delete_lease.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Documentation/filesystems/Locking
Documentation/filesystems/vfs.txt
fs/locks.c