lkml.org 
[lkml]   [2013]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/10] posix-timers: Remove dead process posix cpu timers caching
> @@ -1090,13 +1063,8 @@ void posix_cpu_timer_schedule(struct k_itimer *timer)
> timer->it.cpu.expires = 0;
> goto out_unlock;
> } else if (unlikely(p->exit_state) && thread_group_empty(p)) {
> - /*
> - * We've noticed that the thread is dead, but
> - * not yet reaped. Take this opportunity to
> - * drop our task ref.
> - */
> + /* Optimizations: if the process is dying, no need to rearm */
> cpu_timer_sample_group(timer->it_clock, p, &now);

Why do we still need to call cpu_timer_sample_group? You removed to below line which uses
"now".

> - clear_dead_task(timer, now);
> goto out_unlock;
> }
> spin_lock(&p->sighand->siglock);
>



\
 
 \ /
  Last update: 2013-12-05 01:41    [W:0.078 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site