Re: [PATCH] net: use net->count to check whether a netns is alive or not

2017-03-13 Thread David Miller
From: Andrei Vagin Date: Sun, 12 Mar 2017 21:36:18 -0700 > The previous idea was to check whether a net namespace is in > net_exit_list or not. It doesn't work, because net->exit_list is used in > __register_pernet_operations and __unregister_pernet_operations where > all namespaces are added to

[PATCH] net: use net->count to check whether a netns is alive or not

2017-03-12 Thread Andrei Vagin
The previous idea was to check whether a net namespace is in net_exit_list or not. It doesn't work, because net->exit_list is used in __register_pernet_operations and __unregister_pernet_operations where all namespaces are added to a temporary list to make cleanup in a error case, so list_empty(&ne