Re: [PATCH 0/3] posix cpu timers fixes

From: john stultz
Date: Thu Jun 15 2006 - 15:47:10 EST


On Thu, 2006-06-15 at 20:09 +0400, Oleg Nesterov wrote:
> John Stultz hit run_posix_cpu_timers()->BUG_ON(tsk->exit_state), see
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=115015841413687
>
> This was fixed by
>
> Commit 3de463c7d9d58f8cf3395268230cb20a4c15bffa
> [PATCH] posix-timers: remove false BUG_ON() from run_posix_cpu_timers()
> (now re-sended as [PATCH 2/3])
>
> but it was reverted because it triggered a problem,

Again, just to be clear, I only hit the BUG_ON when using the -RT tree,
which is likely due to the fact that run_posix_cpu_timers() runs from a
kernel thread rather then interrupt context (thus tsk is not current and
you're more likely to race against an exiting task).

It may very well be the issue applies to mainline as well, but I just
want to make sure the proper caution is taken.


> With these patches applied Chris's program exits without any problems.
>
> John, could you please try these patches while you are testing posix
> cpu timers?

I will give them a go. Some of them are already in the -rt tree, as they
were triggered early on.

thanks
-john

-
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/