Re: [PATCH] task_pid_nr_ns() breaks proc_pid_readdir()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Oleg Nesterov <oleg@...>
Cc: Andrew Morton <akpm@...>, Pavel Emelyanov <xemul@...>, <linux-kernel@...>
Date: Monday, November 19, 2007 - 2:15 pm

Oleg Nesterov <oleg@tv-sign.ru> writes:


I wish that last syntax worked in C.  That would make returning
structures so much easier.  From a compiler optimization standpoint
returning structures is ever so much nicer.  Seeing through pointers
or references to optimize things is tricky.


I don't see the huge pile of opportunities to clean up.  But otherwise
I am in favor of it.  In the normal case it should only delay freeing
of struct pid (and the corresponding namespace) by an rcu interval so it
isn't a big deal.

I suspect it will be a help with killing things like the global pids
in task_struct.

Regardless I'm going to pass on the keeping struct pid on the task
struct until we free it and reference counting it there for the
immediate present as I think we can solve the immediate issues cleanly
without it, and we are pretty much in bug fixing territory now.

Eric
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] task_pid_nr_ns() breaks proc_pid_readdir(), Oleg Nesterov, (Sat Nov 17, 2:15 pm)
Re: [PATCH] task_pid_nr_ns() breaks proc_pid_readdir(), Eric W. Biederman, (Sat Nov 17, 4:35 pm)
Re: [PATCH] task_pid_nr_ns() breaks proc_pid_readdir(), Oleg Nesterov, (Sun Nov 18, 10:20 am)
Re: [PATCH] task_pid_nr_ns() breaks proc_pid_readdir(), Eric W. Biederman, (Mon Nov 19, 2:15 pm)
Re: [PATCH] task_pid_nr_ns() breaks proc_pid_readdir(), Oleg Nesterov, (Mon Nov 19, 2:29 pm)
[PATCH] proc: Remove races from proc_id_readdir(), Eric W. Biederman, (Mon Nov 19, 5:44 pm)
Re: [PATCH] proc-remove-races-from-proc_id_readdir-factor-ou..., Eric W. Biederman, (Tue Nov 20, 4:45 pm)
Re: [PATCH] task_pid_nr_ns() breaks proc_pid_readdir(), Eric W. Biederman, (Mon Nov 19, 2:50 pm)