WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] cpupools: optimise domain creation if poo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] cpupools: optimise domain creation if pool movement is a no-op
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Apr 2010 06:15:14 -0700
Delivery-date: Sat, 24 Apr 2010 06:15:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] cpupools: optimise domain creation if pool movement is a no-op, Xen patchbot-unstable <=