Subject: Re: [PATCH net 1/2] netpoll: Use rcu_access_pointer() in __netpoll_setup

From: Breno Leitao <[email-masked]>
Date: Wed, 20 Nov 2024 17:58:57 +0000

hello Herbet,

On Wed, Nov 20, 2024 at 11:48:57AM +0800, Herbert Xu wrote:
> On Wed, Nov 20, 2024 at 11:01:28AM +0800, Herbert Xu wrote:
> > 
> > No, rcu_dereference_protected is actually cheaper than rcu_access_pointer:
> 
> BTW, this code should just use rtnl_dereference which does the
> right thing.

Sure, let me send a patch with rtnl_derefence then.

Thanks for the feedback,
Breno