locks: move freeing of leases outside of i_lock
authorJeff Layton <jlayton@primarydata.com>
Mon, 1 Sep 2014 11:12:07 +0000 (07:12 -0400)
committerJeff Layton <jlayton@primarydata.com>
Tue, 7 Oct 2014 18:06:13 +0000 (14:06 -0400)
There was only one place where we still could free a file_lock while
holding the i_lock -- lease_modify. Add a new list_head argument to the
lm_change operation, pass in a private list when calling it, and fix
those callers to dispose of the list once the lock has been dropped.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Documentation/filesystems/Locking
fs/locks.c
fs/nfsd/nfs4state.c
include/linux/fs.h

Simple merge
diff --cc fs/locks.c
Simple merge
Simple merge
Simple merge