OSDN Git Service

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)
commitbaa1e8a0da768d9b9c34b47f2cc6c6db67a265c4
treeb7c6e856055d8efffbda7f1ad761b04fbebab1d3
parent9044854e4b8b2cf60fc309a1f2288f7acda6ca6b
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