xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Spin lock error when updating domain node affinity
@ 2010-08-09 18:19 Huang2, Wei
  2010-08-09 18:26 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Huang2, Wei @ 2010-08-09 18:19 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

This patch fixes the IRQ issue introduced by changset 21914. The BUG_ON in check_on() was triggered when domain_update_node_affinity() is called.

Signed-off-by: Wei Huang <wei.huang2@amd.com>



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xen-unstable.hg.patch --]
[-- Type: text/x-patch; name="xen-unstable.hg.patch", Size: 1154 bytes --]

# HG changeset patch
# User Wei Huang <wei.huang2@amd.com>
# Date 1281377209 18000
# Node ID 79f9fc596a8f8cfc420b235873c9947f2743a49a
# Parent  8992134dcfd0b9e1e86f4111e68a8aa48bd33c3c
Spin lock error when updating domain node affinity

This patch fixes the IRQ issue introduced by changset 21914. The BUG_ON in check_on() was triggered when domain_update_node_affinity() is called.

Signed-off-by: Wei Huang <wei.huang2@amd.com>

diff -r 8992134dcfd0 -r 79f9fc596a8f xen/common/domain.c
--- a/xen/common/domain.c	Wed Aug 04 19:24:17 2010 +0100
+++ b/xen/common/domain.c	Mon Aug 09 13:06:49 2010 -0500
@@ -351,8 +351,9 @@
     nodemask_t nodemask = NODE_MASK_NONE;
     struct vcpu *v;
     unsigned int node;
+    unsigned long flags;
 
-    spin_lock(&d->node_affinity_lock);
+    spin_lock_irqsave(&d->node_affinity_lock, flags);
 
     for_each_vcpu ( d, v )
         cpus_or(cpumask, cpumask, v->cpu_affinity);
@@ -362,7 +363,7 @@
             node_set(node, nodemask);
 
     d->node_affinity = nodemask;
-    spin_unlock(&d->node_affinity_lock);
+    spin_unlock_irqrestore(&d->node_affinity_lock, flags);
 }
 
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-09 18:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 18:19 [PATCH] Spin lock error when updating domain node affinity Huang2, Wei
2010-08-09 18:26 ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).