Re: 2.6.16-rc6-mm2

Keith Owens
2006-06-13T05:09:25Z

Andi Kleen (on Tue, 13 Jun 2006 06:56:45 +0200) wrote:
>
>> I have previously suggested a lightweight solution that pins a process
>> to a cpu
>
>That is preempt_disable()/preempt_enable() effectively
>It's also light weight as much as these things can be.

The difference being that preempt_disable() does not allow the code to
sleep. There are some places where we want to use cpu local data and
the code can tolerate preemption and even sleeping, as long as the
process schedules back on the same cpu.