[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] cpupools: optimise domain creation if pool movement is a no-op



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1272008315 -3600
# Node ID 3235ef7a839ffabc15f5c1c496aa864746df1cf9
# Parent  7f3eff15050cc940fe68634a3b0e315e69b395e0
cpupools: optimise domain creation if pool movement is a no-op

Signed-off by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
---
 xen/common/cpupool.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r 7f3eff15050c -r 3235ef7a839f xen/common/cpupool.c
--- a/xen/common/cpupool.c      Fri Apr 23 08:37:19 2010 +0100
+++ b/xen/common/cpupool.c      Fri Apr 23 08:38:35 2010 +0100
@@ -520,6 +520,12 @@ addcpu_out:
             rcu_unlock_domain(d);
             break;
         }
+        if ( op->cpupool_id == d->cpupool->cpupool_id )
+        {
+            ret = 0;
+            rcu_unlock_domain(d);
+            break;
+        }
         printk(XENLOG_DEBUG "cpupool move_domain(dom=%d)->pool=%d\n",
             d->domain_id, op->cpupool_id);
         ret = -ENOENT;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.