From: ebiederm@xmission.com (Eric W. Biederman)
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>,
Linux Kernel Network Developers <netdev@vger.kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Cong Wang <cwang@twopensource.com>
Subject: Re: [Patch net] rtnetlink: call rtnl_lock_unregistering() in rtnl_link_unregister()
Date: Fri, 09 May 2014 16:05:27 -0700 [thread overview]
Message-ID: <87bnv6lfig.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <CAM_iQpWsbvC8nZd31n+akt2tQfCKvsHW6WAfjFdsgKNc5iiVig@mail.gmail.com> (Cong Wang's message of "Fri, 9 May 2014 12:22:14 -0700")
Cong Wang <xiyou.wangcong@gmail.com> writes:
> On Fri, May 9, 2014 at 12:02 PM, Stephen Hemminger
> <stephen@networkplumber.org> wrote:
>> On Fri, 9 May 2014 11:10:36 -0700
>> Cong Wang <xiyou.wangcong@gmail.com> wrote:
>>
>>>
>>> This can't be done without a macro (at least for me). Or
>>> we have to duplicate the code.
>>
>> macro method is too ugly, figure out a better way.
>
> That's what I am going to do for -net-next. This patch is for -net,
> it's an ugly but minimum change I can find.
>
> Of course, if you insist we should clean up it for -net as well,
> I can do that.
It would be no worse to rename the existing function
rtnl_lock_unregistering_list
And add a second function rtnl_lock_unregistering that does
the same thing but uses the global list.
Of course this begs the question what happens if the network
device we want to destroy is a network namespace that is currently
exiting and not on the global list.
It looks like we need to grab the net_mutex to get a state where network
namespaces are not exiting...
Eric
next prev parent reply other threads:[~2014-05-09 23:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 17:47 [Patch net] rtnetlink: call rtnl_lock_unregistering() in rtnl_link_unregister() Cong Wang
2014-05-09 18:03 ` Stephen Hemminger
2014-05-09 18:10 ` Cong Wang
2014-05-09 19:02 ` Stephen Hemminger
2014-05-09 19:22 ` Cong Wang
2014-05-09 23:05 ` Eric W. Biederman [this message]
2014-05-12 5:17 ` Cong Wang
2014-05-12 9:18 ` Eric W. Biederman
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=87bnv6lfig.fsf@x220.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=cwang@twopensource.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=xiyou.wangcong@gmail.com \
/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).