OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4
Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4 [message #10773] Wed, 28 February 2007 14:53 Go to next message
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
sukadev@us.ibm.com wrote:
> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
> Subject: [PATCH 4/4] Use task_pgrp() in autofs/autofs4
>
> Replace process_group(tsk) with pid_nr(task_pgrp(tsk)) in autofs and autofs4.

you will need EXPORT_SYMBOL_GPL for pid_nr()

C.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
---
kernel/pid.c | 1 +
1 file changed, 1 insertion(+)

Index: 2.6.20/kernel/pid.c
============================================================ =======
--- 2.6.20.orig/kernel/pid.c
+++ 2.6.20/kernel/pid.c
@@ -263,6 +263,7 @@ pid_t pid_nr(struct pid *pid)
return 0;
}

+EXPORT_SYMBOL_GPL(pid_nr);

struct pid_nr *alloc_pid_nr(struct pid_namespace *pid_ns)
{
Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4 [message #10775 is a reply to message #10773] Wed, 28 February 2007 16:03 Go to previous messageGo to next message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Cedric Le Goater <clg@fr.ibm.com> writes:

> sukadev@us.ibm.com wrote:
>> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
>> Subject: [PATCH 4/4] Use task_pgrp() in autofs/autofs4
>>
>> Replace process_group(tsk) with pid_nr(task_pgrp(tsk)) in autofs and autofs4.
>
> you will need EXPORT_SYMBOL_GPL for pid_nr()

This bit I can agree with. Because you need that at least for
the seq_printf.

However all of the pid_nr(task_pgrp) stuff just appears to be painful
noise.

I have largely given up on review this patch set until that is fixed.

Eric
Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4 [message #17537 is a reply to message #10775] Thu, 01 March 2007 03:41 Go to previous messageGo to next message
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
Eric W. Biederman [ebiederm@xmission.com] wrote:
| Cedric Le Goater <clg@fr.ibm.com> writes:
| 
| > sukadev@us.ibm.com wrote:
| >> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
| >> Subject: [PATCH 4/4] Use task_pgrp() in autofs/autofs4
| >> 
| >> Replace process_group(tsk) with pid_nr(task_pgrp(tsk)) in autofs and autofs4.
| >
| > you will need EXPORT_SYMBOL_GPL for pid_nr()

Cedric: do we need the export in -mm or just in -lxc ? In -mm, for now,
this is an inline function in pid.h and should just get included into
the file(s) no ?

| 
| This bit I can agree with.  Because you need that at least for
| the seq_printf.
| 
| However all of the pid_nr(task_pgrp) stuff just appears to be painful
| noise.  

Ok. I thought they were low priority but required eventually.

| 
| I have largely given up on review this patch set until that is fixed.

I am sending out the patches with the noise cancelled :-) Would like
to send them out to akpm in a few days.

Suka
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4 [message #17548 is a reply to message #17537] Thu, 01 March 2007 04:02 Go to previous messageGo to next message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
sukadev@us.ibm.com writes:

> Ok. I thought they were low priority but required eventually.

If the target is not the current task change is required.  We gain
very little by changing our accessors of the current task.

The important part is that when someone else looks at us we
go through a struct pid and pid_nr so they get the relative view
of what is going on.

The tricky thing is that we find all references to pids.  The well
defined functions are easy.  We can grep for them and see if they
are using anything besides current.

Any time we store a pid we need to store it as a struct pid.

Right now by messing with pid_nr(task_xxx(current)) you are generating
a lot of unnecessary changes, and to some extent hiding where real
change needs to happen.

These things all follow from the fundamentals of what we are doing.

> | I have largely given up on review this patch set until that is fixed.
>
> I am sending out the patches with the noise cancelled :-) Would like
> to send them out to akpm in a few days.

Unfortunately I won't have a chance to do anything until sometime next
week.  I'm off on a short trip without a computer.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4 [message #17590 is a reply to message #17548] Wed, 07 March 2007 23:01 Go to previous messageGo to next message
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
| 
| > | I have largely given up on review this patch set until that is fixed.
| >
| > I am sending out the patches with the noise cancelled :-) Would like
| > to send them out to akpm in a few days.
| 
| Unfortunately I won't have a chance to do anything until sometime next
| week.  I'm off on a short trip without a computer.

Eric, when you get a chance, can you review the patches I sent last
week ?
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [PATCH 4/4] Use task_pgrp() in autofs/autofs4 [message #17596 is a reply to message #17590] Wed, 07 March 2007 23:22 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
sukadev@us.ibm.com writes:

> | 
> | > | I have largely given up on review this patch set until that is fixed.
> | >
> | > I am sending out the patches with the noise cancelled :-) Would like
> | > to send them out to akpm in a few days.
> | 
> | Unfortunately I won't have a chance to do anything until sometime next
> | week.  I'm off on a short trip without a computer.
>
> Eric, when you get a chance, can you review the patches I sent last
> week ?

Thanks for the reminder.  I will see if I can find them and take a look.
I have a pile of email to go through still.

I seem to be playing whack a mole today on the stable tree.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: Re: [ckrm-tech] [PATCH 3/3][RFC] Containers: Pagecache controller reclaim
Next Topic: Re: [ckrm-tech] [PATCH 0/2] resource control file system - aka containers on top of nsproxy!
Goto Forum:
  


Current Time: Tue Sep 09 21:36:15 GMT 2025

Total time taken to generate the page: 0.16268 seconds