On Wed, 2008-04-02 at 12:48 -0700, Roland McGrath wrote:
Ah, okay. Well, except that the whole point of this exercise is to fix
that hang. :-) But yeah, I understand.
BTW I did look at allocating it in posix_cpu_timer_set() and
set_process_cpu_timer() but the first at least is doing stuff with locks
held. I'll keep looking at it, though.
One little gotcha we just ran into, though: When checking
tsk->signal->(anything) in run_posix_cpu_timers(), we have to hold
tasklist_lock to avoid a race with release_task(). This is going to
make even the null case always cost more than before.
--
Frank Mayhar <fmayhar@google.com>
Google, Inc.
--