]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Axe 'aggr_list_lock'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 31 Oct 2019 08:52:40 +0000 (09:52 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Sun, 3 Nov 2019 07:30:58 +0000 (08:30 +0100)
commitf94baeb44134bd35b727ce5af58488c852691cf9
treeb7c6e856055d8efffbda7f1ad761b04fbebab1d3
parent33dcb65306cd3111ec5d3e883c6e3a136eb8fd99
batman-adv: Axe 'aggr_list_lock'

'aggr_list.lock' can safely be used in place of another explicit spinlock
when access to 'aggr_list' has to be guarded.

This avoids to take 2 locks, knowing that the 2nd one is always successful.

Now that the 'aggr_list.lock' is handled explicitly, the lock-free
__sbk_something() variants should be used when dealing with 'aggr_list'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bat_v.c
net/batman-adv/bat_v_ogm.c
net/batman-adv/types.h