diff options
| -rw-r--r-- | include/linux/skbuff.h | 7 | ||||
| -rw-r--r-- | net/core/neighbour.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 0e86b6007a0a..5992f65b4184 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -619,6 +619,13 @@ static inline void skb_queue_head_init(struct sk_buff_head *list) | |||
| 619 | list->qlen = 0; | 619 | list->qlen = 0; |
| 620 | } | 620 | } |
| 621 | 621 | ||
| 622 | static inline void skb_queue_head_init_class(struct sk_buff_head *list, | ||
| 623 | struct lock_class_key *class) | ||
| 624 | { | ||
| 625 | skb_queue_head_init(list); | ||
| 626 | lockdep_set_class(&list->lock, class); | ||
| 627 | } | ||
| 628 | |||
| 622 | /* | 629 | /* |
| 623 | * Insert an sk_buff at the start of a list. | 630 | * Insert an sk_buff at the start of a list. |
| 624 | * | 631 | * |
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index cfc60019cf92..841e3f32cab1 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
| @@ -1331,6 +1331,8 @@ void neigh_parms_destroy(struct neigh_parms *parms) | |||
| 1331 | kfree(parms); | 1331 | kfree(parms); |
| 1332 | } | 1332 | } |
| 1333 | 1333 | ||
| 1334 | static struct lock_class_key neigh_table_proxy_queue_class; | ||
| 1335 | |||
| 1334 | void neigh_table_init_no_netlink(struct neigh_table *tbl) | 1336 | void neigh_table_init_no_netlink(struct neigh_table *tbl) |
| 1335 | { | 1337 | { |
| 1336 | unsigned long now = jiffies; | 1338 | unsigned long now = jiffies; |
| @@ -1379,7 +1381,8 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl) | |||
| 1379 | init_timer(&tbl->proxy_timer); | 1381 | init_timer(&tbl->proxy_timer); |
| 1380 | tbl->proxy_timer.data = (unsigned long)tbl; | 1382 | tbl->proxy_timer.data = (unsigned long)tbl; |
| 1381 | tbl->proxy_timer.function = neigh_proxy_process; | 1383 | tbl->proxy_timer.function = neigh_proxy_process; |
| 1382 | skb_queue_head_init(&tbl->proxy_queue); | 1384 | skb_queue_head_init_class(&tbl->proxy_queue, |
| 1385 | &neigh_table_proxy_queue_class); | ||
| 1383 | 1386 | ||
| 1384 | tbl->last_flush = now; | 1387 | tbl->last_flush = now; |
| 1385 | tbl->last_rand = now + tbl->parms.reachable_time * 20; | 1388 | tbl->last_rand = now + tbl->parms.reachable_time * 20; |
