ia64/linux-2.6.18-xen.hg

changeset 277:32df30e24087

[IA64] Prevent softlockup when destroying VTi domain

Prevent soft lock up when unmapping foreign domain pages
add cond_resched() to unmapping loop.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Tue Oct 23 10:23:00 2007 -0600 (2007-10-23)
parents 8a30e505c2a3
children 0edeca96e7d7 26962454b508
files arch/ia64/xen/hypervisor.c
line diff
     1.1 --- a/arch/ia64/xen/hypervisor.c	Mon Oct 22 13:57:37 2007 -0600
     1.2 +++ b/arch/ia64/xen/hypervisor.c	Tue Oct 23 10:23:00 2007 -0600
     1.3 @@ -762,6 +762,7 @@ xen_ia64_privcmd_vma_close(struct vm_are
     1.4  
     1.5  	for (i = 0; i < privcmd_vma->num_entries; i++) {
     1.6  		xen_ia64_privcmd_entry_close(privcmd_range, entry_offset + i);
     1.7 +		cond_resched();
     1.8  	}
     1.9  	vma->vm_private_data = NULL;
    1.10  	kfree(privcmd_vma);