* [PATCH -mm] remove node_ prefix_from ns subsystem
@ 2008-05-21 15:47 Cedric Le Goater
2008-05-21 20:03 ` Serge E. Hallyn
[not found] ` <48344409.9090903-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
0 siblings, 2 replies; 15+ messages in thread
From: Cedric Le Goater @ 2008-05-21 15:47 UTC (permalink / raw)
To: Andrew Morton
Cc: Serge E. Hallyn, Paul Menage, Linux Kernel Mailing List,
Linux Containers
From: Cedric Le Goater <clg@fr.ibm.com>
This is a slight change in the namespace cgroup subsystem api.
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
---
kernel/cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: 2.6.26-rc2-mm1/kernel/cgroup.c
===================================================================
--- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
+++ 2.6.26-rc2-mm1/kernel/cgroup.c
@@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
cg = tsk->cgroups;
parent = task_cgroup(tsk, subsys->subsys_id);
- snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
+ snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
/* Pin the hierarchy */
atomic_inc(&parent->root->sb->s_active);
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
2008-05-21 15:47 [PATCH -mm] remove node_ prefix_from ns subsystem Cedric Le Goater
@ 2008-05-21 20:03 ` Serge E. Hallyn
[not found] ` <48344409.9090903-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
1 sibling, 0 replies; 15+ messages in thread
From: Serge E. Hallyn @ 2008-05-21 20:03 UTC (permalink / raw)
To: Cedric Le Goater
Cc: Andrew Morton, Serge E. Hallyn, Paul Menage,
Linux Kernel Mailing List, Linux Containers
Quoting Cedric Le Goater (clg@fr.ibm.com):
> From: Cedric Le Goater <clg@fr.ibm.com>
>
> This is a slight change in the namespace cgroup subsystem api.
>
> Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
I agree that is preferable.
Acked-by: Serge Hallyn <serue@us.ibm.com>
> ---
> kernel/cgroup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: 2.6.26-rc2-mm1/kernel/cgroup.c
> ===================================================================
> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
> cg = tsk->cgroups;
> parent = task_cgroup(tsk, subsys->subsys_id);
>
> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
>
> /* Pin the hierarchy */
> atomic_inc(&parent->root->sb->s_active);
^ permalink raw reply [flat|nested] 15+ messages in thread[parent not found: <48344409.9090903-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
2008-05-21 15:47 [PATCH -mm] remove node_ prefix_from ns subsystem Cedric Le Goater
@ 2008-05-22 5:06 ` Andrew Morton
[not found] ` <48344409.9090903-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
1 sibling, 0 replies; 15+ messages in thread
From: Andrew Morton @ 2008-05-22 5:06 UTC (permalink / raw)
To: Cedric Le Goater; +Cc: Linux Containers, Paul Menage, Linux Kernel Mailing List
On Wed, 21 May 2008 17:47:21 +0200 Cedric Le Goater <clg-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org> wrote:
> From: Cedric Le Goater <clg-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
>
> This is a slight change in the namespace cgroup subsystem api.
>
What are the reasons for making this change?
> ---
> kernel/cgroup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: 2.6.26-rc2-mm1/kernel/cgroup.c
> ===================================================================
> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
> cg = tsk->cgroups;
> parent = task_cgroup(tsk, subsys->subsys_id);
>
> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
>
> /* Pin the hierarchy */
> atomic_inc(&parent->root->sb->s_active);
This is user-visible, isn't it? Been there since October. How can we
safely change it now?
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
@ 2008-05-22 5:06 ` Andrew Morton
0 siblings, 0 replies; 15+ messages in thread
From: Andrew Morton @ 2008-05-22 5:06 UTC (permalink / raw)
To: Cedric Le Goater
Cc: Serge E. Hallyn, Paul Menage, Linux Kernel Mailing List,
Linux Containers
On Wed, 21 May 2008 17:47:21 +0200 Cedric Le Goater <clg@fr.ibm.com> wrote:
> From: Cedric Le Goater <clg@fr.ibm.com>
>
> This is a slight change in the namespace cgroup subsystem api.
>
What are the reasons for making this change?
> ---
> kernel/cgroup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: 2.6.26-rc2-mm1/kernel/cgroup.c
> ===================================================================
> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
> cg = tsk->cgroups;
> parent = task_cgroup(tsk, subsys->subsys_id);
>
> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
>
> /* Pin the hierarchy */
> atomic_inc(&parent->root->sb->s_active);
This is user-visible, isn't it? Been there since October. How can we
safely change it now?
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <20080521220657.12e8e8c9.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>]
* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
2008-05-22 5:06 ` Andrew Morton
@ 2008-05-22 7:11 ` Paul Menage
-1 siblings, 0 replies; 15+ messages in thread
From: Paul Menage @ 2008-05-22 7:11 UTC (permalink / raw)
To: Andrew Morton
Cc: Linux Containers, Cedric Le Goater, Linux Kernel Mailing List
On Wed, May 21, 2008 at 10:06 PM, Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> wrote:
>> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
>> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
>> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
>> cg = tsk->cgroups;
>> parent = task_cgroup(tsk, subsys->subsys_id);
>>
>> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
>> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
>>
>> /* Pin the hierarchy */
>> atomic_inc(&parent->root->sb->s_active);
>
> This is user-visible, isn't it? Been there since October. How can we
> safely change it now?
It is user-visible, but I'd be extremely surprised if anyone was
depending on it or even using it at this point.
Paul
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
@ 2008-05-22 7:11 ` Paul Menage
0 siblings, 0 replies; 15+ messages in thread
From: Paul Menage @ 2008-05-22 7:11 UTC (permalink / raw)
To: Andrew Morton
Cc: Cedric Le Goater, Serge E. Hallyn, Linux Kernel Mailing List,
Linux Containers
On Wed, May 21, 2008 at 10:06 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
>> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
>> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
>> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
>> cg = tsk->cgroups;
>> parent = task_cgroup(tsk, subsys->subsys_id);
>>
>> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
>> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
>>
>> /* Pin the hierarchy */
>> atomic_inc(&parent->root->sb->s_active);
>
> This is user-visible, isn't it? Been there since October. How can we
> safely change it now?
It is user-visible, but I'd be extremely surprised if anyone was
depending on it or even using it at this point.
Paul
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <6599ad830805220011u77313ed7s2c0c9d4a658133cc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
2008-05-22 7:11 ` Paul Menage
@ 2008-05-22 7:32 ` Andrew Morton
-1 siblings, 0 replies; 15+ messages in thread
From: Andrew Morton @ 2008-05-22 7:32 UTC (permalink / raw)
To: Paul Menage; +Cc: Linux Containers, Cedric Le Goater, Linux Kernel Mailing List
On Thu, 22 May 2008 00:11:56 -0700 "Paul Menage" <menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org> wrote:
> On Wed, May 21, 2008 at 10:06 PM, Andrew Morton
> <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> wrote:
> >> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
> >> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
> >> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
> >> cg = tsk->cgroups;
> >> parent = task_cgroup(tsk, subsys->subsys_id);
> >>
> >> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
> >> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
> >>
> >> /* Pin the hierarchy */
> >> atomic_inc(&parent->root->sb->s_active);
> >
> > This is user-visible, isn't it? Been there since October. How can we
> > safely change it now?
>
> It is user-visible, but I'd be extremely surprised if anyone was
> depending on it or even using it at this point.
After six months?
Oh well, I guess the number is small, and they'll know how to fix it.
What is the reason for making this change?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
@ 2008-05-22 7:32 ` Andrew Morton
0 siblings, 0 replies; 15+ messages in thread
From: Andrew Morton @ 2008-05-22 7:32 UTC (permalink / raw)
To: Paul Menage
Cc: Cedric Le Goater, Serge E. Hallyn, Linux Kernel Mailing List,
Linux Containers
On Thu, 22 May 2008 00:11:56 -0700 "Paul Menage" <menage@google.com> wrote:
> On Wed, May 21, 2008 at 10:06 PM, Andrew Morton
> <akpm@linux-foundation.org> wrote:
> >> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
> >> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
> >> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
> >> cg = tsk->cgroups;
> >> parent = task_cgroup(tsk, subsys->subsys_id);
> >>
> >> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
> >> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
> >>
> >> /* Pin the hierarchy */
> >> atomic_inc(&parent->root->sb->s_active);
> >
> > This is user-visible, isn't it? Been there since October. How can we
> > safely change it now?
>
> It is user-visible, but I'd be extremely surprised if anyone was
> depending on it or even using it at this point.
After six months?
Oh well, I guess the number is small, and they'll know how to fix it.
What is the reason for making this change?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH -mm] remove node_ prefix_from ns subsystem
2008-05-22 7:32 ` Andrew Morton
(?)
@ 2008-05-22 7:36 ` Cedric Le Goater
[not found] ` <48352277.4010703-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
-1 siblings, 1 reply; 15+ messages in thread
From: Cedric Le Goater @ 2008-05-22 7:36 UTC (permalink / raw)
To: Andrew Morton
Cc: Paul Menage, Serge E. Hallyn, Linux Kernel Mailing List,
Linux Containers
Andrew Morton wrote:
> On Thu, 22 May 2008 00:11:56 -0700 "Paul Menage" <menage@google.com> wrote:
>
>> On Wed, May 21, 2008 at 10:06 PM, Andrew Morton
>> <akpm@linux-foundation.org> wrote:
>>>> --- 2.6.26-rc2-mm1.orig/kernel/cgroup.c
>>>> +++ 2.6.26-rc2-mm1/kernel/cgroup.c
>>>> @@ -2903,7 +2903,7 @@ int cgroup_clone(struct task_struct *tsk
>>>> cg = tsk->cgroups;
>>>> parent = task_cgroup(tsk, subsys->subsys_id);
>>>>
>>>> - snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "node_%d", tsk->pid);
>>>> + snprintf(nodename, MAX_CGROUP_TYPE_NAMELEN, "%d", tsk->pid);
>>>>
>>>> /* Pin the hierarchy */
>>>> atomic_inc(&parent->root->sb->s_active);
>>> This is user-visible, isn't it? Been there since October. How can we
>>> safely change it now?
>> It is user-visible, but I'd be extremely surprised if anyone was
>> depending on it or even using it at this point.
>
> After six months?
yes that's what we believe also.
> Oh well, I guess the number is small, and they'll know how to fix it.
>
> What is the reason for making this change?
the 'node_' prefix really is superfluous and misleading. what's a node ?
C.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-05-22 9:21 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 15:47 [PATCH -mm] remove node_ prefix_from ns subsystem Cedric Le Goater
2008-05-21 20:03 ` Serge E. Hallyn
[not found] ` <48344409.9090903-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-05-22 5:06 ` Andrew Morton
2008-05-22 5:06 ` Andrew Morton
[not found] ` <20080521220657.12e8e8c9.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2008-05-22 7:11 ` Paul Menage
2008-05-22 7:11 ` Paul Menage
[not found] ` <6599ad830805220011u77313ed7s2c0c9d4a658133cc-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-05-22 7:32 ` Andrew Morton
2008-05-22 7:32 ` Andrew Morton
2008-05-22 7:36 ` Cedric Le Goater
[not found] ` <48352277.4010703-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-05-22 8:10 ` Andrew Morton
2008-05-22 8:10 ` Andrew Morton
2008-05-22 8:23 ` Paul Menage
[not found] ` <6599ad830805220123t7a3848eeg244393723d5fd08d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-05-22 8:36 ` Andrew Morton
2008-05-22 8:36 ` Andrew Morton
2008-05-22 9:21 ` Cedric Le Goater
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.