linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wait_event()\wake_up order fails?
@ 2016-06-16 12:49 Muni Sekhar
  0 siblings, 0 replies; only message in thread
From: Muni Sekhar @ 2016-06-16 12:49 UTC (permalink / raw)
  To: linux-kernel

Hi All,


I have a kernel thread THREAD_A and it waits for an event by calling
wait_event() API.

Other thread THREAD_B wakes up the THREAD_A by calling wake_up() API.

In a concurrent execution, what if the wake_up() is called before
THREAD_A entering into TASK_UNINTERRUPTIBLE sleep?


I have noticed in running long soak test, THREAD_A enters into
TASK_UNINTERRUPTIBLE sleep and THREAD_B’s wake_up() not able to wake
the THREAD_A, what might be the reason for this?


I would like to know in which scenario wake_up() fails to wake the
sleeping thread?



-- 
Thanks,
Sekhar

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-16 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 12:49 wait_event()\wake_up order fails? Muni Sekhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).