Re: [PREEMPT_RT] [PATCH] Fix BUG: using smp_processor_id() in preemptible [00000000] code: nfsd/2852

From: Ingo Molnar
Date: Wed Apr 18 2007 - 11:17:37 EST



* Ankita Garg <ankita@xxxxxxxxxx> wrote:

> While running some tests on 2.6.20-rt8 with DEBUG_PREEMPT on, I hit
> the following BUG:

> This patch fixes the above issue which arises due to the call to
> smp_processor_id in drain_array() from mm/slab.c. smp_processor_id()
> invocation is redundant here, as the call to slab_spin_lock_irq()
> already fills the value of this_cpu using raw_smp_processor_id().

thanks, applied!

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