keep track of IRQ context and don't do thread migration there

This commit is contained in:
Balazs Gerofi
2015-07-23 16:55:46 +09:00
parent 54eb345847
commit 3988b0fc61
3 changed files with 7 additions and 1 deletions

View File

@@ -2293,7 +2293,7 @@ redo:
ihk_mc_spinlock_unlock(&(v->runq_lock), irqstate);
}
if (v->flags & CPU_FLAG_NEED_MIGRATE) {
if (v->flags & CPU_FLAG_NEED_MIGRATE && !v->in_interrupt) {
v->flags &= ~CPU_FLAG_NEED_MIGRATE;
do_migrate();
goto redo;