]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0f1a3a9ba2c20d73c476df2b2f64ad4ac776798
tree79b4d9eaff924dea2776a3ac3758550d736dd819
parentba11537712572b1a82bc6586090aac13e44960d1
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