Re: [PATCH 06/14] irq: Fix invalid wakeup in irq_wait_for_interrupt

2013-09-12 Thread Thomas Gleixner
On Thu, 29 Aug 2013, Libin wrote: > If this thread is preempted at(or before) location a, and the other thread > set the condition(kthread_stop). After that when this thread is re-scheduled, > calling set_current_state to set itself as state TASK_INTERRUPTIBLE, if it is > preempted again after that

[PATCH 06/14] irq: Fix invalid wakeup in irq_wait_for_interrupt

2013-08-29 Thread Libin
If this thread is preempted at(or before) location a, and the other thread set the condition(kthread_stop). After that when this thread is re-scheduled, calling set_current_state to set itself as state TASK_INTERRUPTIBLE, if it is preempted again after that and before __set_current_state(TASK_RUNNI