summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-08-12 08:03:49 -0400
committerJeff Layton <jlayton@primarydata.com>2014-08-14 10:07:47 -0400
commitb84d49f9440b2b039828f3eb114e4bd4ebeb0c54 (patch)
tree685156b25d833997ada9caf07bd7f2541efd53bd /Makefile
parent566709bd627caf933ab8edffaf598203a0c5c8b2 (diff)
downloadop-kernel-dev-b84d49f9440b2b039828f3eb114e4bd4ebeb0c54.zip
op-kernel-dev-b84d49f9440b2b039828f3eb114e4bd4ebeb0c54.tar.gz
locks: don't reuse file_lock in __posix_lock_file
Currently in the case where a new file lock completely replaces the old one, we end up overwriting the existing lock with the new info. This means that we have to call fl_release_private inside i_lock. Change the code to instead copy the info to new_fl, insert that lock into the correct spot and then delete the old lock. In a later patch, we'll defer the freeing of the old lock until after the i_lock has been dropped. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud