Skip to content
Snippets Groups Projects
Commit 1f8bd287 authored by Jiri Pirko's avatar Jiri Pirko Committed by Frieder Schrempf
Browse files

net: treat possible_net_t net pointer as an RCU one and add read_pnet_rcu()


[ Upstream commit 2034d90a ]

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: default avatarJiri Pirko <jiri@nvidia.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 71b8471c93fa ("ipv4: use RCU protection in ipv4_default_advmss()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e4c33317
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment