]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irda: Fix lockdep annotations in hashbin_delete().
authorDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 21:19:39 +0000 (16:19 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 1 Mar 2017 19:27:39 +0000 (20:27 +0100)
commit7132afee391a91d58daa332e1851f1139889b0e3
treef91b0a67e18669b7c07c08d5de78fc20f55a6c35
parent336d459d464a2d23b5df724ae5fb5cd92bc9074c
irda: Fix lockdep annotations in hashbin_delete().

[ Upstream commit 4c03b862b12f980456f9de92db6d508a4999b788 ]

A nested lock depth was added to the hasbin_delete() code but it
doesn't actually work some well and results in tons of lockdep splats.

Fix the code instead to properly drop the lock around the operation
and just keep peeking the head of the hashbin queue.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/irda/irqueue.c