Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 4 Apr 2002 14:15:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 4 Apr 2002 14:15:06 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:12563 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Thu, 4 Apr 2002 14:14:56 -0500 Date: Thu, 4 Apr 2002 11:14:33 -0800 (PST) From: Linus Torvalds To: Robert Love cc: Dave Hansen , "Adam J. Richter" , Subject: Re: Patch: linux-2.5.8-pre1/kernel/exit.c change caused BUG() at boot time In-Reply-To: <1017946309.22303.492.camel@phantasy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/