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, 7 Oct 2014 18:06:13 +0000 (14:06 -0400)
commitf82b4b6780afabce9d9a91c84fae17ec3d63b9d7
tree525f28ccf756579147d7d498734a057b859e2215
parent1c7dd2ff430fa14b45c9def54468e3a25ab8342b
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