Re: [PATCH v3 net-next 03/15] neighbour: Remove lock dance for neigh_update_{gc,managed}_list().
David Ahern <[email protected]>
| Newsgroups | org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On 8/10/26 8:23 PM, Kuniyuki Iwashima wrote: > __neigh_update() could call neigh_update_gc_list() and > neigh_update_managed_list(). > > Both of them acquire neigh->tbl->lock and neigh->lock, check > neigh->dead, perform link operations, and release the locks. > > Let's remove the lock dance. > > Note that neigh->dead is always marked under neigh->tbl->lock. > > Signed-off-by: Kuniyuki Iwashima <[email protected]> > --- > net/core/neighbour.c | 39 +++++++++++++++++++-------------------- > 1 file changed, 19 insertions(+), 20 deletions(-) > Reviewed-by: David Ahern <[email protected]>