From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman)
To: "Denis V. Lunev" <dlunev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Linux Containers
<containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>,
"Denis V. Lunev" <den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>,
Benjamin Thery <benjamin.thery-6ktuUTfB/bM@public.gmane.org>
Subject: Re: [PATCH] [NETNS49] support for per/namespace routing cache cleanup
Date: Wed, 17 Oct 2007 12:50:35 -0600 [thread overview]
Message-ID: <m1fy09eft0.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <47164CBD.3040107-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Denis V. Lunev's message of "Wed, 17 Oct 2007 21:56:13 +0400")
"Denis V. Lunev" <dlunev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Daniel Lezcano wrote:
>> Oh, by the way, I forgot something important you spotted with the list
>> protected by the mutex.
>>
>> When looking at ipv6/fib_hash.c with Benjamin, we need to browse the network
>> namespaces list for the garbage collecting, but we are in an interrupt
>> handler, so I can not use rtnl_lock.
> where exactly....
>
> all interesting places are called under rtnl already...
>
>> Why is not possible to protect the list with a simple spinlock ? so we can
>> call spin_lock_bh when we are in interrupt handler.
>
> see my old patch with a locking rules :)
Actually at this point given that your rtnl_unlock() cleanup made it
in things are much simpler and if we really need to we can add a
spinlock protecting things.
> By the way, I have forgotten to mention, that the original patch works from 2004
> for OpenVz :)
Probably. It is a different optimization and maintenance point
however. So while it can inspire things it isn't an apples to apples
comparison.
Eric
next prev parent reply other threads:[~2007-10-17 18:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 11:12 [PATCH] [NETNS49] support for per/namespace routing cache cleanup Denis V. Lunev
[not found] ` <20071017111215.GA29653-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2007-10-17 11:46 ` Daniel Lezcano
[not found] ` <4715F60F.6060304-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-17 12:51 ` Denis V. Lunev
[not found] ` <4716055D.4010102-3ImXcnM4P+0@public.gmane.org>
2007-10-17 13:40 ` Daniel Lezcano
[not found] ` <471610E8.8020008-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-17 14:10 ` Denis V. Lunev
[not found] ` <471617CA.9090901-3ImXcnM4P+0@public.gmane.org>
2007-10-17 14:46 ` Daniel Lezcano
2007-10-17 15:05 ` Daniel Lezcano
[not found] ` <471624C0.9020108-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-17 17:56 ` Denis V. Lunev
[not found] ` <47164CBD.3040107-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-10-17 18:50 ` Eric W. Biederman [this message]
2007-10-18 7:18 ` Benjamin Thery
[not found] ` <471708D8.3080808-6ktuUTfB/bM@public.gmane.org>
2007-10-18 9:54 ` Denis V. Lunev
2007-10-18 14:51 ` Denis V. Lunev
[not found] ` <471772EB.2060206-3ImXcnM4P+0@public.gmane.org>
2007-10-18 16:29 ` Benjamin Thery
[not found] ` <471789FD.5020802-6ktuUTfB/bM@public.gmane.org>
2007-10-18 19:01 ` Denis V. Lunev
2007-10-18 19:05 ` Denis V. Lunev
[not found] ` <4717AE7D.1060000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-10-19 7:39 ` Daniel Lezcano
2007-10-19 7:39 ` Daniel Lezcano
[not found] ` <47185F2C.1070404-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-19 8:53 ` Denis V. Lunev
[not found] ` <47187074.3090206-3ImXcnM4P+0@public.gmane.org>
2007-10-19 19:03 ` 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=m1fy09eft0.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm-as9lmozglivwk0htik3j/w@public.gmane.org \
--cc=benjamin.thery-6ktuUTfB/bM@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
--cc=den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
--cc=dlunev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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