浏览代码

x86, xen: do multicall callbacks with interrupts disabled

We can't call the callbacks after enabling interrupts, as we may get a
nested multicall call, which would cause a great deal of havok.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Jeremy Fitzhardinge 16 年之前
父节点
当前提交
c99608637e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/x86/xen/multicalls.c

+ 2 - 2
arch/x86/xen/multicalls.c

@@ -170,8 +170,6 @@ void xen_mc_flush(void)
 	} else
 		BUG_ON(b->argidx != 0);
 
-	local_irq_restore(flags);
-
 	for (i = 0; i < b->cbidx; i++) {
 		struct callback *cb = &b->callbacks[i];
 
@@ -179,6 +177,8 @@ void xen_mc_flush(void)
 	}
 	b->cbidx = 0;
 
+	local_irq_restore(flags);
+
 	WARN_ON(ret);
 }