diff options
| author | David Ahern <[email protected]> | 2018-12-10 13:54:07 -0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-12-10 17:41:35 -0800 |
| commit | 8cc196d6ef86bbab01dbf16f6c596cf56aa0839e (patch) | |
| tree | df782409e9117f4a333bc68cd2567ffc96070270 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
| parent | 93698321f72cb351ae6ab59185b611ba26e6e1d0 (diff) | |
neighbor: gc_list changes should be protected by table lock
Adding and removing neighbor entries to / from the gc_list need to be
done while holding the table lock; a couple of places were missed in the
original patch.
Move the list_add_tail in neigh_alloc to ___neigh_create where the lock
is already obtained. Since neighbor entries should rarely be moved
to/from PERMANENT state, add lock/unlock around the gc_list changes in
neigh_change_state rather than extending the lock hold around all
neighbor updates.
Fixes: 58956317c8de ("neighbor: Improve garbage collection")
Reported-by: Andrei Vagin <[email protected]>
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Signed-off-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions