projects/linux·commit f9fc05e7

Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

f9fc05e7 · Linus Torvalds <[email protected]> · 2008-12-10 14:41:06 -08:00

* 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  sched: CPU remove deadlock fix
Commit
f9fc05e7620b3ffc93eeeda6d02fc70436676152
Parents
b88ed205 · 9a2bd244

Merge commit. Changes below are compared with the first parent: b88ed205.

Changes

1 files changed · +2 −0

FileStatusAddDelContent
kernel/sched.cmodified+2−0View file

kernel/sched.c

View file
diff --git a/kernel/sched.c b/kernel/sched.c
index b7480fb..e4bb1dd 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6587,7 +6587,9 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
req = list_entry(rq->migration_queue.next,
struct migration_req, list);
list_del_init(&req->list);
+ spin_unlock_irq(&rq->lock);
complete(&req->done);
+ spin_lock_irq(&rq->lock);
}
spin_unlock_irq(&rq->lock);
break;