diff options
author | Jeff Layton <jlayton@redhat.com> | 2014-02-03 18:13:07 +0100 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2014-03-31 14:24:42 +0200 |
commit | 8c3cac5e6a85f03602ffe09c44f14418699e31ec (patch) | |
tree | f831e23dbc12c4e3dc3dba31c1395678268da354 /include/uapi/asm-generic | |
parent | locks: add __acquires and __releases annotations to locks_start and locks_stop (diff) | |
download | linux-8c3cac5e6a85f03602ffe09c44f14418699e31ec.tar.xz linux-8c3cac5e6a85f03602ffe09c44f14418699e31ec.zip |
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 <bfields@fieldses.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'include/uapi/asm-generic')
0 files changed, 0 insertions, 0 deletions