batman-adv: Annotate deleting functions with external lock via lockdep
authorSven Eckelmann <sven@narfation.org>
Sun, 21 Jun 2015 12:45:14 +0000 (14:45 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Mon, 24 Aug 2015 22:12:23 +0000 (00:12 +0200)
commit2c72d655b04450056566bcbfe89c2427376b60b4
tree79b4d9eaff924dea2776a3ac3758550d736dd819
parent7c26a53ba5e7e4bf2be3cb93f2fffaefccff2e3b
batman-adv: Annotate deleting functions with external lock via lockdep

Functions which use (h)list_del* are requiring correct locking when they
operate on global lists. Most of the time the search in the list and the
delete are done in the same function. All other cases should have it
visible that they require a special lock to avoid race conditions.

Lockdep asserts can be used to check these problem during runtime when the
lockdep functionality is enabled.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/main.c
net/batman-adv/multicast.c
net/batman-adv/network-coding.c
net/batman-adv/translation-table.c