Re: using rcu_read_lock() after calling dst_neigh_lookup

2017-01-10 Thread David Miller
From: Hadar Hen Zion Date: Tue, 10 Jan 2017 16:22:51 +0200 > While the documentation in neighbour.c says: > > "Neighbour entries are protected: >- with reference count. >- with rwlock neigh->lock >Reference count prevents destruction. >neigh->lock mainly serializes ll address da

using rcu_read_lock() after calling dst_neigh_lookup

2017-01-10 Thread Hadar Hen Zion
Hi Dave, Drivers which are calling dst_neigh_lookup() are also using rcu_read_lock() before accessing the neigh pointer (and asking it's ll address data and its validity state). You can find the same behavior in: drivers/infiniband/core/addr.c, drivers/infiniband/hw/i40iw/i40iw_cm.c, driver