Re: [PATCH net 1/2] netpoll: Use rcu_access_pointer() in __netpoll_setup
From: Breno Leitao
Date: Wed Nov 20 2024 - 12:59:14 EST
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