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

From: Eric Dumazet
Date: Mon Jul 30 2018 - 18:23:27 EST




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>

Thanks.