From: David Miller <davem@davemloft.net>
To: avagin@openvz.org
Cc: netdev@vger.kernel.org, grawity@gmail.com, stable@vger.kernel.org
Subject: Re: [PATCH] net: use net->count to check whether a netns is alive or not
Date: Mon, 13 Mar 2017 16:03:16 -0700 (PDT) [thread overview]
Message-ID: <20170313.160316.2050029482820012246.davem@davemloft.net> (raw)
In-Reply-To: <20170313043618.16183-1-avagin@openvz.org>
From: Andrei Vagin <avagin@openvz.org>
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 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>
Applied and queued up for -stable, thanks.
prev parent reply other threads:[~2017-03-13 23:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-13 4:36 [PATCH] net: use net->count to check whether a netns is alive or not Andrei Vagin
2017-03-13 23:03 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170313.160316.2050029482820012246.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=avagin@openvz.org \
--cc=grawity@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).