aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/resource.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-02-15 14:45:54 +0100
committerThomas Gleixner <tglx@linutronix.de>2010-02-16 15:13:59 +0100
commit0970d2992dfd7d5ec2c787417cf464f01eeaf42a (patch)
tree5f0077dcafda733ef3f1e41d218a473978ce6a9f /kernel/resource.c
parentsched: Fix SMT scheduler regression in find_busiest_queue() (diff)
downloadwireguard-linux-0970d2992dfd7d5ec2c787417cf464f01eeaf42a.tar.xz
wireguard-linux-0970d2992dfd7d5ec2c787417cf464f01eeaf42a.zip
sched: Fix race between ttwu() and task_rq_lock()
Thomas found that due to ttwu() changing a task's cpu without holding the rq->lock, task_rq_lock() might end up locking the wrong rq. Avoid this by serializing against TASK_WAKING. Reported-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1266241712.15770.420.camel@laptop> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions