From: David Vrabel Date: Wed, 28 Oct 2015 13:39:05 +0000 (+0000) Subject: x86/xen: add reschedule point when mapping foreign GFNs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=914beb9fc26d6225295b8315ab54026f8f22755c;p=linux-beck.git 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 Reviewed-by: Boris Ostrovsky --- diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 9c479fe40459..ac161db63388 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: