diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-09-01 07:12:07 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-10-07 14:06:13 -0400 |
commit | c45198eda2794bb72601c9f96266d8b95db66dd5 (patch) | |
tree | 59c973d0d5356e113efd22ece677267cbc07e0af /Documentation/filesystems | |
parent | f82b4b6780afabce9d9a91c84fae17ec3d63b9d7 (diff) |
locks: move freeing of leases outside of i_lock
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>
Diffstat (limited to 'Documentation/filesystems')
-rw-r--r-- | Documentation/filesystems/Locking | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking index 4af288e38f13..94d93b1f8b53 100644 --- a/Documentation/filesystems/Locking +++ b/Documentation/filesystems/Locking | |||
@@ -469,8 +469,7 @@ prototypes: | |||
469 | }; | 469 | }; |
470 | 470 | ||
471 | locking rules: | 471 | locking rules: |
472 | All may block except for ->setlease. | 472 | All may block. |
473 | No VFS locks held on entry except for ->setlease. | ||
474 | 473 | ||
475 | ->llseek() locking has moved from llseek to the individual llseek | 474 | ->llseek() locking has moved from llseek to the individual llseek |
476 | implementations. If your fs is not using generic_file_llseek, you | 475 | implementations. If your fs is not using generic_file_llseek, you |