[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Zz1cKZYt1e7elibV@gondor.apana.org.au>
Date: Wed, 20 Nov 2024 11:48:57 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Breno Leitao <leitao@...ian.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>,
Stephen Hemminger <stephen@...workplumber.org>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
paulmck@...nel.org, Cong Wang <cong.wang@...edance.com>
Subject: Re: [PATCH net 1/2] netpoll: Use rcu_access_pointer() in
__netpoll_setup
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.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists