diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2010-12-12 21:57:12 (GMT) |
---|---|---|
committer | Marek Lindner <lindner_marek@yahoo.de> | 2011-03-05 11:49:54 (GMT) |
commit | f987ed6ebd991009cd9f6190ce319e8b50d6be1f (patch) | |
tree | 08fd4c5edc6ee74407ec901cef960978946f716f /net/batman-adv/types.h | |
parent | 9591a79f280ede740e44aeb8ad93a6692d482dce (diff) | |
download | linux-fsl-qoriq-f987ed6ebd991009cd9f6190ce319e8b50d6be1f.tar.xz |
batman-adv: protect neighbor list with rcu locks
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/types.h')
-rw-r--r-- | net/batman-adv/types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index 779c5c3..d4fa727 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h @@ -85,6 +85,7 @@ struct orig_node { uint32_t last_bcast_seqno; struct hlist_head neigh_list; struct list_head frag_list; + spinlock_t neigh_list_lock; /* protects neighbor list */ unsigned long last_frag_packet; struct { uint8_t candidates; @@ -116,6 +117,7 @@ struct neigh_node { unsigned long last_valid; unsigned long real_bits[NUM_WORDS]; struct kref refcount; + struct rcu_head rcu; struct orig_node *orig_node; struct batman_if *if_incoming; }; |