Re: Should we use preempt_disable() in sleep_on_common()?

From: Arjan van de Ven
Date: Thu Dec 03 2009 - 02:05:45 EST


On Thu, 3 Dec 2009 14:49:14 +0800
liu pf <kernelfans@xxxxxxxxx> wrote:

> Hi:
>
> I am puzzled with the following scenario. Could anyone enlighten me?


sleep_on family of APIs is very racy and just cannot be used correctly;
I'm not surprised that there's a preempt race in it, but trust me, it's
not the biggest race... never ever use these APIs!!!


--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
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/