Commit 32d5eaa
neighbour: Drop read_lock_bh(&tbl->lock) in pneigh_dump_table().
Now pneigh_entry is guaranteed to be alive during the
RCU critical section even without holding tbl->lock.
Let's drop read_lock_bh(&tbl->lock) and use rcu_dereference()
to iterate tbl->phash_buckets[] in pneigh_dump_table()
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent ed6e380 commit 32d5eaa
1 file changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2808 | 2808 | | |
2809 | 2809 | | |
2810 | 2810 | | |
2811 | | - | |
2812 | | - | |
2813 | 2811 | | |
2814 | 2812 | | |
2815 | 2813 | | |
2816 | | - | |
| 2814 | + | |
2817 | 2815 | | |
2818 | | - | |
| 2816 | + | |
2819 | 2817 | | |
2820 | 2818 | | |
2821 | 2819 | | |
| |||
2824 | 2822 | | |
2825 | 2823 | | |
2826 | 2824 | | |
2827 | | - | |
2828 | | - | |
| 2825 | + | |
2829 | 2826 | | |
2830 | | - | |
2831 | 2827 | | |
2832 | 2828 | | |
2833 | 2829 | | |
2834 | 2830 | | |
2835 | 2831 | | |
2836 | | - | |
2837 | 2832 | | |
2838 | 2833 | | |
2839 | 2834 | | |
| |||
0 commit comments