lkml.org 
[lkml]   [2002]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Patch: linux-2.5.8-pre1/kernel/exit.c change caused BUG() at boot time

On 4 Apr 2002, Robert Love wrote:
>
> Thanks for the CC. I've been looking into this problem. I am not too
> sure why we require protection from concurrency via preemption and not
> via SMP. In other words, why are we SMP-safe but not preempt-safe here.
>
> I don't really have an answer.

The answer is that preempt_schedule() illegally sets

current->state = TASK_RUNNING;

without asking the process whether that's ok. The SMP code never does
anything like that.

Linus

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

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.095 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site