Andrey Vagin
91864f5852
net: use net->count to check whether a netns is alive or not
...
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(&net->exit_list) always returns false.
Reported-by: Mantas Mikulėnas <grawity@gmail.com>
Fixes: 002d8a1a6c11 ("net: skip genenerating uevents for network namespaces that are exiting")
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-13 16:02:27 -07:00
..
2017-01-22 16:46:13 -05:00
2017-03-03 21:44:35 -08:00
2016-12-24 11:46:01 -08:00
2017-02-06 11:25:57 -05:00
2017-02-27 18:43:47 -08:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-02 14:39:17 -08:00
2017-03-09 18:23:27 -08:00
2017-03-13 13:01:10 -07:00
2017-03-02 08:42:29 +01:00
2017-01-30 11:05:04 +01:00
2017-03-03 10:16:38 -08:00
2017-03-13 16:02:27 -07:00
2016-12-03 23:54:25 -05:00
2017-03-07 14:15:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-03 10:16:38 -08:00
2017-02-11 02:31:11 -05:00
2017-02-16 21:25:49 -05:00
2017-02-21 13:25:22 -05:00
2017-02-27 18:43:47 -08:00
2017-02-03 15:16:45 -05:00
2017-03-09 18:28:42 -08:00
2017-03-13 12:53:35 -07:00
2016-12-25 17:21:22 +01:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-02 08:42:32 +01:00
2017-02-28 10:00:39 -08:00
2016-12-24 11:46:01 -08:00
2017-03-09 18:23:27 -08:00
2017-03-04 17:31:39 -08:00
2017-03-02 08:42:38 +01:00
2017-03-12 23:45:36 -07:00
2017-03-04 17:31:39 -08:00
2017-01-06 22:20:45 -05:00
2017-01-27 12:03:29 -05:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-02 13:14:44 -08:00
2017-03-01 20:55:57 -08:00
2017-03-09 18:23:27 -08:00
2017-01-24 13:44:28 -05:00
2017-01-10 20:45:04 -05:00
2017-03-09 18:23:27 -08:00
2017-01-24 11:07:35 +01:00
2017-03-09 18:23:27 -08:00
2017-03-10 09:34:23 -08:00
2017-03-12 23:32:41 -07:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-03 20:43:26 -08:00
2017-03-02 08:42:31 +01:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-02-10 14:31:51 -05:00
2017-03-09 18:23:27 -08:00
2017-03-07 15:00:37 -08:00
2017-02-22 10:15:09 -08:00
2017-02-17 13:40:05 -05:00
2017-02-03 15:16:45 -05:00
2017-03-09 18:23:27 -08:00