summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2015-10-28 13:39:05 (GMT)
committerDavid Vrabel <david.vrabel@citrix.com>2015-10-28 13:46:27 (GMT)
commit914beb9fc26d6225295b8315ab54026f8f22755c (patch)
treeff501a82a74d95167af9ab401d2b44d32eff352d /arch
parentcb9644bf3b549d20656cca02e8a6332c67cf37d6 (diff)
downloadlinux-914beb9fc26d6225295b8315ab54026f8f22755c.tar.xz
x86/xen: add reschedule point when mapping foreign GFNs
Mapping a large range of foreign GFNs can take a long time, add a reschedule point after each batch of 16 GFNs. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/xen/mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 9c479fe..ac161db 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -2888,6 +2888,7 @@ static int do_remap_gfn(struct vm_area_struct *vma,
addr += range;
if (err_ptr)
err_ptr += batch;
+ cond_resched();
}
out: