Re: [PATCH] VMI paravirt-ops bugfix for 2.6.21

From: Jeremy Fitzhardinge
Date: Sat Mar 31 2007 - 04:12:56 EST


Andrew Morton wrote:
> On Sat, 31 Mar 2007 00:45:59 -0800 Zachary Amsden <zach@xxxxxxxxxx> wrote:
>
>
>> +static void vmi_set_lazy_mode(int new_mode)
>> +{
>> + static DEFINE_PER_CPU(int, mode);
>> + static DEFINE_PER_CPU(unsigned long, flags);
>> + int cpu = smp_processor_id();
>>
>
> That will cause upset if CONFIG_PREEMPT=y?
>

It must be called under the pagetable lock, so preempt should already be
disabled.

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