Linux Container Development
 help / color / mirror / Atom feed
From: "Denis V. Lunev" <den-3ImXcnM4P+0@public.gmane.org>
To: Daniel Lezcano <dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org,
	"Denis V. Lunev" <den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>,
	ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org,
	benjamin.thery-6ktuUTfB/bM@public.gmane.org
Subject: Re: [PATCH 2/3] [NETNS49] Add struct net to all calls for rt_cache_flush
Date: Thu, 18 Oct 2007 18:40:48 +0400	[thread overview]
Message-ID: <47177070.4000700@sw.ru> (raw)
In-Reply-To: <471764A9.2080703-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>

Daniel Lezcano wrote:
> Denis V. Lunev wrote:
>> commit 628d4768843fc6d572596b91e29f8ce6506c276a
>> Author: Denis V. Lunev <den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
>> Date:   Thu Oct 18 12:48:38 2007 +0400
>>
>>     Add struct net to all calls for rt_cache_flush. Additionally, the 
>> function
>>     manipulating with timer should not actually call the garbage 
>> collector as
>>     the namespace is not known in the global rt_secret_rebuild.
>>         Signed-off-by: Denis V. Lunev <den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
>>
> 
> I see you are using current->nsproxy->net_ns for sysctl stuff. Normally 
> you should use ctl->extra2 where the struct net is stored. But in the 
> case of route sysctl, it is not per namespace, so ctl->extra2 is NULL.
> I will look at that and make it per namespace, so you will be able to 
> build this patch on top of it and remove current->nsproxy->net_ns.

I think that this is quite boring. It is impossible to get the namespace 
almost anywhere even when it is safe to use this :(

extra2 is a bad place, as it has a conventional meaning for other 
kernel. For example it is used for quite a lot of sysctl-s anywhere.

Regards,
	Den

  parent reply	other threads:[~2007-10-18 14:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-18 10:03 [PATCH 2/3] [NETNS49] Add struct net to all calls for rt_cache_flush Denis V. Lunev
     [not found] ` <20071018100330.GA23415-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2007-10-18 13:50   ` Daniel Lezcano
     [not found]     ` <471764A9.2080703-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2007-10-18 14:40       ` Denis V. Lunev [this message]
     [not found]         ` <47177070.4000700-3ImXcnM4P+0@public.gmane.org>
2007-10-19 19:23           ` 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=47177070.4000700@sw.ru \
    --to=den-3imxcnm4p+0@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=dlezcano-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org \
    --cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@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