Re: [PATCH 1/2] posix_timer: separate timer_cleanup from timer_del

From: Oleg Nesterov
Date: Fri May 14 2010 - 12:04:15 EST


(add Stanislaw)

On 05/14, Andrey Vagin wrote:
>
> Signed-off-by: Andrey Vagin <avagin@xxxxxxxxxx>

You forgot to write the changelog ;)



> --- a/kernel/posix-cpu-timers.c
> +++ b/kernel/posix-cpu-timers.c
> @@ -455,14 +455,21 @@ int posix_cpu_timer_del(struct k_itimer *timer)
> spin_unlock(&p->sighand->siglock);
> }
> read_unlock(&tasklist_lock);
> -
> - if (!ret)
> - put_task_struct(p);
> }
>
> + if (!ret)
> + posix_cpu_timer_cleanup(timer);
> +
> return ret;
> }

Could you please explain this change?

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/