sched, __wake_up_sync_key: Fix nr_exclusive tasks which lead to WF_SYNC clearing
PATCH 1/1 sched, __wake_up_sync_key: Fix nr_exclusive tasks which lead to WF_SYNC clearing
The only one task can replace waker.
Signed-off-by Kirill Tkhai <[email protected]>
CC Steven Rostedt <[email protected]>
CC Ingo Molnar <[email protected]>
CC Peter Zijlstra <[email protected]>
--- kernel/sched/core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched/core.c +1 -1
@@ -2658,7 +2658,7 @@ void __wake_up_sync_key(wait_queue_head_t *q, unsigned int mode,if (unlikely (!q))return ; -if (unlikely (!nr_exclusive)) +if (unlikely (nr_exclusive !=1 )) wake_flags =0 ;spin_lock_irqsave (&q->lock, flags);
Peter Zijlstra
maintainerQuoted 1 line · Kirill Tkhai
The only one task can replace waker.
Fair enough.. thanks!
tip-bot for Kirill Tkhai
merge bot[tip:sched/core] sched/__wake_up_sync_key(): Fix nr_exclusive tasks which lead to WF_SYNC clearing
In reply to Kirill Tkhaisched/__wake_up_sync_key(): Fix nr_exclusive tasks which lead to WF_SYNC clearing
Commit-ID: cedce3e730833d26a37826a96e1905b6ef387df9 Gitweb: http://git.kernel.org/tip/cedce3e730833d26a37826a96e1905b6ef387df9 Author: Kirill Tkhai <[email protected]> AuthorDate: Thu, 4 Jul 2013 22:48:20 +0400 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 12 Jul 2013 13:54:03 +0200
sched/__wake_up_sync_key(): Fix nr_exclusive tasks which lead to WF_SYNC clearing
Only one task can replace the waker.
Signed-off-by Kirill Tkhai <[email protected]>
CC Steven Rostedt <[email protected]>
Signed-off-by Peter Zijlstra <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
@@ -2660,7 +2660,7 @@ void __wake_up_sync_key(wait_queue_head_t *q, unsigned int mode,if (unlikely (!q))return ; -if (unlikely (!nr_exclusive)) +if (unlikely (nr_exclusive !=1 )) wake_flags =0 ;spin_lock_irqsave (&q->lock, flags);