[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1309121536210.4089@ionos.tec.linutronix.de>
Date: Thu, 12 Sep 2013 15:36:56 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: Libin <huawei.libin@...wei.com>
cc: akpm@...ux-foundation.org, tj@...nel.org, viro@...iv.linux.org.uk,
eparis@...hat.com, rusty@...tcorp.com.au, ebiederm@...ssion.com,
paulmck@...ux.vnet.ibm.com, john.stultz@...aro.org,
mingo@...hat.com, peterz@...radead.org, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org, lizefan@...wei.com,
jovi.zhangwei@...wei.com, guohanjun@...wei.com,
zhangdianfang@...wei.com, wangyijing@...wei.com
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists