diff options
author | Andrey Vagin <avagin@openvz.org> | 2017-03-13 05:36:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-14 00:02:27 +0100 |
commit | 91864f5852f9996210fad400cf70fb85af091243 (patch) | |
tree | eb2789ec1d0fc8a2c244a61c2489da6d3d08f230 /mm | |
parent | bridge: drop netfilter fake rtable unconditionally (diff) | |
download | linux-91864f5852f9996210fad400cf70fb85af091243.tar.xz linux-91864f5852f9996210fad400cf70fb85af091243.zip |
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions