Re: [patch net-next v3 1/7] net: treat possible_net_t net pointer as an RCU one and add read_pnet_rcu()

From
Simon Horman <horms@kernel.org>
Date
2023-10-17 08:49:51
Reply to
Jiri Pirko, 2023-10-13
On Fri, Oct 13, 2023 at 02:10:23PM +0200, Jiri Pirko wrote:
From: Jiri Pirko <redacted>

Make the net pointer stored in possible_net_t structure annotated as
an RCU pointer. Change the access helpers to treat it as such.
Introduce read_pnet_rcu() helper to allow caller to dereference
the net pointer under RCU read lock.

Signed-off-by: Jiri Pirko <redacted>
Reviewed-by: Simon Horman <horms@kernel.org>
Thread (16 messages) 16 messages, 3 authors, last reply 2023-10-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help