direct-io.hg

changeset 15015:9d0dbe9c4d6b

ia64, linux: Import linux git changeset 5ee7737379b1d7f0c977c0f1661fbaf01a8d4721

Without this, IA64 vcpu hot plug/remove or domain save/restore cause
kernel panic.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Keir Fraser <keir@xensource.com>
date Mon May 07 13:58:42 2007 +0100 (2007-05-07)
parents 33fbff91ebe4
children 4930f0289d0d 05b5b126eb4c
files patches/linux-2.6.18/git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch patches/linux-2.6.18/series
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/linux-2.6.18/git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch	Mon May 07 13:58:42 2007 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +--- ./arch/ia64/kernel/smp.c.orig	2007-05-02 19:00:01.000000000 +0900
     1.5 ++++ ./arch/ia64/kernel/smp.c	2007-05-02 19:04:32.000000000 +0900
     1.6 +@@ -328,10 +328,14 @@ int
     1.7 + smp_call_function (void (*func) (void *info), void *info, int nonatomic, int wait)
     1.8 + {
     1.9 + 	struct call_data_struct data;
    1.10 +-	int cpus = num_online_cpus()-1;
    1.11 ++	int cpus;
    1.12 + 
    1.13 +-	if (!cpus)
    1.14 ++	spin_lock(&call_lock);
    1.15 ++	cpus = num_online_cpus()-1;
    1.16 ++	if (!cpus) {
    1.17 ++		spin_unlock(&call_lock);
    1.18 + 		return 0;
    1.19 ++	}
    1.20 + 
    1.21 + 	/* Can deadlock when called with interrupts disabled */
    1.22 + 	WARN_ON(irqs_disabled());
    1.23 +@@ -343,8 +347,6 @@ smp_call_function (void (*func) (void *i
    1.24 + 	if (wait)
    1.25 + 		atomic_set(&data.finished, 0);
    1.26 + 
    1.27 +-	spin_lock(&call_lock);
    1.28 +-
    1.29 + 	call_data = &data;
    1.30 + 	mb();	/* ensure store to call_data precedes setting of IPI_CALL_FUNC */
    1.31 + 	send_IPI_allbutself(IPI_CALL_FUNC);
     2.1 --- a/patches/linux-2.6.18/series	Mon May 07 13:57:18 2007 +0100
     2.2 +++ b/patches/linux-2.6.18/series	Mon May 07 13:58:42 2007 +0100
     2.3 @@ -21,3 +21,4 @@ git-c06cb8b1c4d25e5b4d7a2d7c2462619de1e0
     2.4  softlockup-no-idle-hz.patch
     2.5  allow-i386-crash-kernels-to-handle-x86_64-dumps.patch
     2.6  allow-i386-crash-kernels-to-handle-x86_64-dumps-fix.patch
     2.7 +git-5ee7737379b1d7f0c977c0f1661fbaf01a8d4721.patch