On Mon, 2005-08-22 at 20:45 +0400, Oleg Nesterov wrote: > But I know nothing about kernel/posix-cpu-timers.c, I doubt it will work > for posix_cpu_timer_del(). I don't have time to study posix-cpu-timers now. > However, I see that __exit_signal() calls posix_cpu_timers_exit_xxx(), so > may be it can work? timer->it.cpu.task is set to NULL by posix_cpu_timers_exit(), so the code in posix_cpu_timer_del returns before accessing tasklist_lock. The exit functions do not take any locks, but it is not necessary there. posix_run_cpu_timers(p) is called with p=current() and we have interrupts disabled, so the timer interrupt can not run on this CPU. The current exiting process can not run at the same time on a different CPU, so no race and lockup possible here. tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- 2.6.13-rc6-rt9
- From: Ingo Molnar <[email protected]>
- [PATCH 2.6.13-rc6-rt9] PI aware dynamic priority adjustment
- From: Thomas Gleixner <[email protected]>
- [PATCH] fix send_sigqueue() vs thread exit race
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Thomas Gleixner <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Thomas Gleixner <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Thomas Gleixner <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Thomas Gleixner <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Thomas Gleixner <[email protected]>
- Re: [PATCH] fix send_sigqueue() vs thread exit race
- From: Oleg Nesterov <[email protected]>
- 2.6.13-rc6-rt9
- Prev by Date: Re: [PATCH] Add MCE resume under ia32
- Next by Date: debug a high load average
- Previous by thread: Re: [PATCH] fix exit_itimers() vs posix_timer_event() AB-BAdeadlock
- Next by thread: Re: [PATCH 2.6.13-rc6-rt9] PI aware dynamic priority adjustment
- Index(es):