Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Oleg Nesterov <oleg@...>
Cc: <ebiederm@...>, <mingo@...>, <paulmck@...>, <xemul@...>, <linux-kernel@...>
Date: Tuesday, January 29, 2008 - 7:08 pm

On Tue, 29 Jan 2008 19:40:19 +0300
Oleg Nesterov <oleg@tv-sign.ru> wrote:


My attempt to understand this change timed out.

kernel/pid.c is full of global but undocumented functions.  What are the
locking requirements for free_pid()?  free_pid_ns()?  If it's just
caller-must-hold-rcu_read_lock() then why not use rcu_read_lock() here?

If the locking is "caller must hold write_lock_irq(tasklist_lock) then the
sole relevant comment in there (in free_pid()) is wrong.

Guys, more maintainable code please?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Oleg Nesterov, (Tue Jan 29, 12:40 pm)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Eric W. Biederman, (Tue Jan 29, 11:24 pm)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Eric W. Biederman, (Wed Jan 30, 2:28 pm)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Paul E. McKenney, (Wed Jan 30, 1:00 am)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Eric W. Biederman, (Wed Jan 30, 5:20 am)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Andrew Morton, (Tue Jan 29, 7:08 pm)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Eric W. Biederman, (Tue Jan 29, 10:16 pm)
Re: [PATCH] fix tasklist + find_pid() with CONFIG_PREEMPT_RCU, Paul E. McKenney, (Wed Jan 30, 12:56 am)