Messages in this thread | | | Date | Thu, 12 Sep 2013 15:36:56 +0200 (CEST) | From | Thomas Gleixner <> | Subject | Re: [PATCH 10/14] time: Fix invalid wakeup in alarmtimer_do_nsleep |
| |
On Thu, 29 Aug 2013, Libin wrote:
> If thread is preempted before calling set_current_state(TASK_INTERRUPTIBLE), > and the other thread set the condition followed with wake_up_process. 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_RUNNING), it triggers the invalid wakeup problem. > > To solve this problem, using preempt_disable() to bound the operaion that > setting the task state and the conditions(set by the wake thread) validation.
See the reply to the hrtimer patch. You're solving a non issue.
Thanks,
tglx
| |