From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 6 Oct 2016 05:03:15 +0200 From: Linus =?utf-8?Q?L=C3=BCssing?= Message-ID: <20161006030315.GE19216@otheros> References: <20160920121245.593-1-linus.luessing@c0d3.blue> <20160920121245.593-2-linus.luessing@c0d3.blue> <7378987.EkNMrEAytt@sven-edge> <20161006015520.GC19216@otheros> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161006015520.GC19216@otheros> Subject: Re: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: Store and transmit own neighborhood hash List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Thu, Oct 06, 2016 at 03:55:21AM +0200, Linus Lüssing wrote: > On Thu, Sep 29, 2016 at 05:31:27PM +0200, Sven Eckelmann wrote: > > First you have to use hlist_add_head_rcu and hlist_add_behind_rcu here because > > the readers use RCU to access the list. I think it would also be more > > appropriate to replace the rcu_read_lock in the batadv_hardif_neigh_get_pre > > function and instead use lockdep to mark the function as "requires > > hard_iface->neigh_list_lock". > > Hm, I'm currently wondering... isn't this a bug we already have > now, then? Shouldn't this have been an hlist_add_head_rcu() in the > first place? Now saw your patch for maint - so ignore my last comment :D.