]> Pileus Git - ~andy/linux/commit
batman-adv: Set special lockdep classes to avoid lockdep warning
authorSven Eckelmann <sven@narfation.org>
Mon, 20 Aug 2012 07:03:59 +0000 (09:03 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 29 Oct 2012 08:42:32 +0000 (09:42 +0100)
commit36c1d1531130dcfadf845419fd15735b9b4c004f
tree7bb3d3253eed07d3d32cb51c00ad3a17e496543e
parentc10dba051a3e287a4f023aaaeffa53fd642cf8c5
batman-adv: Set special lockdep classes to avoid lockdep warning

Transmissions over batman-adv devices always start another nested transmission
over devices attached to the batman-adv interface. These devices usually use
the ethernet lockdep class for the tx_queue lock which is also set by default
for all batman-adv devices. Lockdep will detect a nested locking attempt of two
locks with the same class and warn about a possible deadlock.

This is the default and expected behavior and should not alarm the locking
correctness prove mechanism. Therefore, the locks for all netdevice specific tx
queues get a special batman-adv lock class to avoid a false positive for each
transmission.

Reported-by: Linus Luessing <linus.luessing@web.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/soft-interface.c