Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   UBUNTU: SAUCE: Use ticket locks for Xen 3.0.2+ (http://www.linux-archive.org/ubuntu-kernel-team/676801-ubuntu-sauce-use-ticket-locks-xen-3-0-2-a.html)

Stefan Bader 06-25-2012 09:55 AM

UBUNTU: SAUCE: Use ticket locks for Xen 3.0.2+
 
The SUSE patchset did limit the ticket lock code to be used only
on Xen hypervisors version 3.2 or higher because HYPERVISOR_poll()
is supposed to have issues before.
However we have been using that call before and the chance to be
running on EC2 on such an old hypervisor is getting even less.
Not using ticket locks and the hypervisor assisting could increase
host cpu usage and unfairness in lock contention situations.

BugLink: http://bugs.launchpad.net/bugs/929941

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
arch/x86/include/mach-xen/asm/spinlock_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/mach-xen/asm/spinlock_types.h b/arch/x86/include/mach-xen/asm/spinlock_types.h
index 7d01ae1..3fa1833 100644
--- a/arch/x86/include/mach-xen/asm/spinlock_types.h
+++ b/arch/x86/include/mach-xen/asm/spinlock_types.h
@@ -13,7 +13,7 @@ typedef union {
/*
* Xen versions prior to 3.2.x have a race condition with HYPERVISOR_poll().
*/
-#if CONFIG_XEN_COMPAT >= 0x030200
+#if CONFIG_XEN_COMPAT >= 0x030002
/*
* On Xen we support a single level of interrupt re-enabling per lock. Hence
* we can have twice as many outstanding tickets. Thus the cut-off for using
--
1.7.9.5


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team


All times are GMT. The time now is 01:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.