Re: 2.6.9 rc2 freezing
From: Dave Jones
Date: Wed Sep 15 2004 - 12:11:14 EST
On Wed, Sep 15, 2004 at 12:06:48PM -0400, Lee Revell wrote:
> Anyway, if you are running anything on your server that breaks under
> PREEMPT, it will break anyway as soon as you add another processor.
Wrong. Code can be SMP safe but not preempt safe.
This is why we have get_cpu()/put_cpu(), and
preempt_disable()/preempt_enable() pairs around certain parts of code.
Anything using per-CPU data like MSRs for example needs explicit
protection against preemption.
Dave
-
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/