Re: [PATCH tip/core/rcu 01/11] mm: Place preemption point indo_mlockall() loop

From: Andrew Morton
Date: Wed Sep 25 2013 - 00:10:46 EST


On Tue, 24 Sep 2013 18:29:11 -0700 "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> wrote:

> --- a/mm/mlock.c
> +++ b/mm/mlock.c
> @@ -736,6 +736,7 @@ static int do_mlockall(int flags)
>
> /* Ignore errors */
> mlock_fixup(vma, &prev, vma->vm_start, vma->vm_end, newflags);
> + cond_resched();
> }
> out:
> return 0;

Might need one in munlock_vma_pages_range() as well - it's a matter of
finding the right test case. This will be neverending :(
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/