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

[Xen-changelog] [xen-unstable] credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1291978160 0
# Node ID b482e1782ed21f96f585c0fa86c2ef9b9f32ae8a
# Parent  d9fc83a64a82624e24876250dd88b2cd9528d266
credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
---
 xen/common/sched_credit2.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r d9fc83a64a82 -r b482e1782ed2 xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c        Thu Dec 09 19:19:34 2010 +0000
+++ b/xen/common/sched_credit2.c        Fri Dec 10 10:49:20 2010 +0000
@@ -668,6 +668,8 @@ csched_vcpu_sleep(const struct scheduler
         cpu_raise_softirq(vc->processor, SCHEDULE_SOFTIRQ);
     else if ( __vcpu_on_runq(svc) )
         __runq_remove(svc);
+    else if ( test_bit(__CSFLAG_delayed_runq_add, &svc->flags) )
+        clear_bit(__CSFLAG_delayed_runq_add, &svc->flags);
 }
 
 static void

_______________________________________________
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®.