diff options
Diffstat (limited to 'net/batman-adv/bat_iv_ogm.c')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index abd10c490fd9..dc53798ebb47 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c | |||
@@ -43,7 +43,6 @@ static struct neigh_node *bat_iv_ogm_neigh_new(struct hard_iface *hard_iface, | |||
43 | goto out; | 43 | goto out; |
44 | 44 | ||
45 | INIT_LIST_HEAD(&neigh_node->bonding_list); | 45 | INIT_LIST_HEAD(&neigh_node->bonding_list); |
46 | spin_lock_init(&neigh_node->tq_lock); | ||
47 | 46 | ||
48 | neigh_node->orig_node = orig_neigh; | 47 | neigh_node->orig_node = orig_neigh; |
49 | neigh_node->if_incoming = hard_iface; | 48 | neigh_node->if_incoming = hard_iface; |
@@ -637,12 +636,12 @@ static void bat_iv_ogm_orig_update(struct bat_priv *bat_priv, | |||
637 | if (is_duplicate) | 636 | if (is_duplicate) |
638 | continue; | 637 | continue; |
639 | 638 | ||
640 | spin_lock_bh(&tmp_neigh_node->tq_lock); | 639 | spin_lock_bh(&tmp_neigh_node->lq_update_lock); |
641 | ring_buffer_set(tmp_neigh_node->tq_recv, | 640 | ring_buffer_set(tmp_neigh_node->tq_recv, |
642 | &tmp_neigh_node->tq_index, 0); | 641 | &tmp_neigh_node->tq_index, 0); |
643 | tmp_neigh_node->tq_avg = | 642 | tmp_neigh_node->tq_avg = |
644 | ring_buffer_avg(tmp_neigh_node->tq_recv); | 643 | ring_buffer_avg(tmp_neigh_node->tq_recv); |
645 | spin_unlock_bh(&tmp_neigh_node->tq_lock); | 644 | spin_unlock_bh(&tmp_neigh_node->lq_update_lock); |
646 | } | 645 | } |
647 | 646 | ||
648 | if (!neigh_node) { | 647 | if (!neigh_node) { |
@@ -668,12 +667,12 @@ static void bat_iv_ogm_orig_update(struct bat_priv *bat_priv, | |||
668 | orig_node->flags = batman_ogm_packet->flags; | 667 | orig_node->flags = batman_ogm_packet->flags; |
669 | neigh_node->last_seen = jiffies; | 668 | neigh_node->last_seen = jiffies; |
670 | 669 | ||
671 | spin_lock_bh(&neigh_node->tq_lock); | 670 | spin_lock_bh(&neigh_node->lq_update_lock); |
672 | ring_buffer_set(neigh_node->tq_recv, | 671 | ring_buffer_set(neigh_node->tq_recv, |
673 | &neigh_node->tq_index, | 672 | &neigh_node->tq_index, |
674 | batman_ogm_packet->tq); | 673 | batman_ogm_packet->tq); |
675 | neigh_node->tq_avg = ring_buffer_avg(neigh_node->tq_recv); | 674 | neigh_node->tq_avg = ring_buffer_avg(neigh_node->tq_recv); |
676 | spin_unlock_bh(&neigh_node->tq_lock); | 675 | spin_unlock_bh(&neigh_node->lq_update_lock); |
677 | 676 | ||
678 | if (!is_duplicate) { | 677 | if (!is_duplicate) { |
679 | orig_node->last_ttl = batman_ogm_packet->header.ttl; | 678 | orig_node->last_ttl = batman_ogm_packet->header.ttl; |