From: Jeff Layton Date: Mon, 3 Feb 2014 17:13:07 +0000 (-0500) Subject: locks: eliminate BUG() call when there's an unexpected lock on file close X-Git-Tag: v3.15-rc1~98^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3cac5e6a85f03602ffe09c44f14418699e31ec;p=pandora-kernel.git locks: eliminate BUG() call when there's an unexpected lock on file close A leftover lock on the list is surely a sign of a problem of some sort, but it's not necessarily a reason to panic the box. Instead, just log a warning with some info about the lock, and then delete it like we would any other lock. In the event that the filesystem declares a ->lock f_op, we may end up leaking something, but that's generally preferable to an immediate panic. Acked-by: J. Bruce Fields Signed-off-by: Jeff Layton --- Reading git-diff-tree failed