diff options
author | Jeff Layton <jeff.layton@primarydata.com> | 2015-07-11 06:43:02 -0400 |
---|---|---|
committer | Jeff Layton <jeff.layton@primarydata.com> | 2015-07-13 06:29:11 -0400 |
commit | bcd7f78d078ff6197715c1ed070c92aca57ec12c (patch) | |
tree | 67e8a76ebf041787e4894883ce72733b048ccd9c /Documentation/00-INDEX | |
parent | ed056764271e71004b3118619de1ebfefb2acf6b (diff) |
locks: have flock_lock_file take an inode pointer instead of a filp
...and rename it to better describe how it works.
In order to fix a use-after-free in NFS, we need to be able to remove
locks from an inode after the filp associated with them may have already
been freed. flock_lock_file already only dereferences the filp to get to
the inode, so just change it so the callers do that.
All of the callers already pass in a lock request that has the fl_file
set properly, so we don't need to pass it in individually. With that
change it now only dereferences the filp to get to the inode, so just
push that out to the callers.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Reviewed-by: "J. Bruce Fields" <bfields@fieldses.org>
Tested-by: "J. Bruce Fields" <bfields@fieldses.org>
Diffstat (limited to 'Documentation/00-INDEX')
0 files changed, 0 insertions, 0 deletions