aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/types.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2019-10-31 09:52:40 +0100
committerSimon Wunderlich <sw@simonwunderlich.de>2019-11-03 08:30:58 +0100
commitbaa1e8a0da768d9b9c34b47f2cc6c6db67a265c4 (patch)
treeb7c6e856055d8efffbda7f1ad761b04fbebab1d3 /net/batman-adv/types.h
parentbatman-adv: Simplify 'batadv_v_ogm_aggr_list_free()' (diff)
downloadlinux-dev-baa1e8a0da768d9b9c34b47f2cc6c6db67a265c4.tar.xz
linux-dev-baa1e8a0da768d9b9c34b47f2cc6c6db67a265c4.zip
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>
Diffstat (limited to '')
-rw-r--r--net/batman-adv/types.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index 4d7f1baee7b7..47718a82eaf2 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -130,9 +130,6 @@ struct batadv_hard_iface_bat_v {
/** @aggr_len: size of the OGM aggregate (excluding ethernet header) */
unsigned int aggr_len;
- /** @aggr_list_lock: protects aggr_list */
- spinlock_t aggr_list_lock;
-
/**
* @throughput_override: throughput override to disable link
* auto-detection