Re: [PATCH] net: remove bogus RCU annotations on socket.wq

From: Paul E. McKenney
Date: Mon Jul 30 2018 - 20:51:30 EST


On Mon, Jul 30, 2018 at 03:23:06PM -0700, Eric Dumazet wrote:
>
>
> On 07/30/2018 12:45 AM, Christoph Hellwig wrote:
> > We never use RCU protection for it, just a lot of cargo-cult
> > rcu_deference_protects calls.
> >
> > Note that we do keep the kfree_rcu call for it, as the references through
> > struct sock are RCU protected and thus might require a grace period before
> > freeing.
> >
> > Signed-off-by: Christoph Hellwig <hch@xxxxxx>
>
> Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Acked-by: Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx>