mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: Allow xfrm_user_net_exit to batch efficiently.
xfrm.nlsk is provided by the xfrm_user module and is access via rcu from other parts of the xfrm code. Add xfrm.nlsk_stash a copy of xfrm.nlsk that will never be set to NULL. This allows the synchronize_net and netlink_kernel_release to be deferred until a whole batch of xfrm.nlsk sockets have been set to NULL. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
04dc7f6be3
commit
d79d792ef9
2 changed files with 11 additions and 8 deletions
|
@ -43,6 +43,7 @@ struct netns_xfrm {
|
|||
struct work_struct policy_hash_work;
|
||||
|
||||
struct sock *nlsk;
|
||||
struct sock *nlsk_stash;
|
||||
|
||||
u32 sysctl_aevent_etime;
|
||||
u32 sysctl_aevent_rseqth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue