Skip to content
Commit cac69a82 authored by Jeff Layton's avatar Jeff Layton Committed by Jiri Slaby
Browse files

locks: eliminate BUG() call when there's an unexpected lock on file close



commit 8c3cac5e upstream.

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: default avatarJ. Bruce Fields <bfields@fieldses.org>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Cc: Markus Blank-Burian <burian@muenster.de>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 021e1548
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment