Re: [this_cpu_xx V5 19/19] SLUB: Experimental new fastpath w/ointerrupt disable

From: Mathieu Desnoyers
Date: Thu Oct 08 2009 - 15:24:21 EST


* Christoph Lameter (cl@xxxxxxxxxxxxxxxxxxxx) wrote:
> On Thu, 8 Oct 2009, Mathieu Desnoyers wrote:
>
> > Then how do you re-enable preemption in the slow path when you need to
> > block ?
>
> preempt_enable();
>
> before the page allocator call and
>
> preempt_disable();
>
> afterwards.
>

OK, sounds good,

Mathieu


--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
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/