Re: mmotm 2010-04-05 - another RCU whinge (not network this time)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Monday, April 12, 2010 - 11:32 am

On 04/09, Paul E. McKenney wrote:

Yes, it should be p->sighand->siglock.

Actually, I was going to change another caller, do_task_stat(), to call
collect_sigign_sigcatch() without ->siglock too, but now I am not sure
when/if this will happen.

OK, thanks, I'll send the patch to make rcu_dereference_check() happy.




While we are here... __exit_signal() does

	sighand = rcu_dereference_check(tsk->sighand,
					rcu_read_lock_held() ||
					lockdep_tasklist_lock_is_held());

What is the point? We know that the single caller must hold tasklist,
otherwise everything is broken. Perhaps it would be better to
use rcu_dereference_raw() ?

In fact, I don't really understand why __exit_signal() needs
rcu_dereference() at all.

Oleg.

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

Messages in current thread:
mmotm 2010-04-05-16-09 uploaded, akpm, (Mon Apr 5, 4:09 pm)
[PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Randy Dunlap, (Mon Apr 5, 10:04 pm)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Bruno =?UTF-8?B?UHLD ..., (Tue Apr 6, 1:56 am)
[No subject], Randy Dunlap, (Tue Apr 6, 8:26 am)
[No subject], Bruno , (Tue Apr 6, 9:35 am)
[No subject], Randy Dunlap, (Tue Apr 6, 9:56 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Bruno =?UTF-8?B?UHLD ..., (Tue Apr 6, 2:04 pm)
Re: mmotm 2010-04-05-16-09 uploaded, Valdis.Kletnieks, (Wed Apr 7, 11:01 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Bruno =?UTF-8?B?UHLD ..., (Wed Apr 7, 11:31 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Bruno =?UTF-8?B?UHLD ..., (Wed Apr 7, 11:44 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Bruno =?UTF-8?B?UHLD ..., (Wed Apr 7, 1:29 pm)
Re: mmotm 2010-04-05-16-09 uploaded, Patrick McHardy, (Thu Apr 8, 4:41 am)
Re: mmotm 2010-04-05-16-09 uploaded, Valdis.Kletnieks, (Thu Apr 8, 8:23 am)
Re: mmotm 2010-04-05-16-09 uploaded, Patrick McHardy, (Thu Apr 8, 8:36 am)
Re: mmotm 2010-04-05-16-09 uploaded, Valdis.Kletnieks, (Thu Apr 8, 5:50 pm)
Re: mmotm 2010-04-05-16-09 uploaded, Patrick McHardy, (Fri Apr 9, 7:49 am)
Re: [PATCH mmotm] hid-picolcd: depends on LCD_CLASS_DEVICE, Bruno Prémont, (Sun Apr 11, 3:17 am)
Re: mmotm 2010-04-05 - another RCU whinge (not network thi ..., Oleg Nesterov, (Mon Apr 12, 11:32 am)