question about wait_event

From: yeyouqun
Date: Sun Apr 24 2011 - 22:32:16 EST


Hi guys,I have some doubt about "wait_event". One group processes, say A, they calls "wait_event (wq, 1)", and one single process B calls "wake_up_all", the question is:

B only run once, so all the processes in A that hold the lock of "wq" after B process, which will sleep on the "wq" forever, is it true? If true, how to stop it from happening?
--
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/