From: Jeff Layton Date: Tue, 12 Aug 2014 12:03:49 +0000 (-0400) Subject: locks: don't reuse file_lock in __posix_lock_file X-Git-Tag: omap-for-v3.17/fixes-against-rc2~49^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b84d49f9440b2b039828f3eb114e4bd4ebeb0c54;p=pandora-kernel.git 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 Signed-off-by: Jeff Layton --- Reading git-diff-tree failed