Re: Patch: linux-2.5.8-pre1/kernel/exit.c change caused BUG() at

Dave Hansen (haveblue@us.ibm.com)
Thu, 04 Apr 2002 11:41:46 -0800


Robert Love wrote:
> tsk->exit_code = code;
> exit_notify();
> + preempt_enable_no_resched();
* PREEMPT HERE *
> schedule();
> BUG();

Isn't there still a race here? A preempt CAN happen after you reenable,
right? Admittedly, its a small window, but it _is_ a window.

-- 
Dave Hansen
haveblue@us.ibm.com

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