From: Ingo Molnar The attached patch fixes long scheduling latencies in get_user_pages(). Has been tested as part of the -VP patchset. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton --- 25-akpm/mm/memory.c | 1 + 1 files changed, 1 insertion(+) diff -puN mm/memory.c~sched-mm-fix-scheduling-latencies-in-get_user_pages mm/memory.c --- 25/mm/memory.c~sched-mm-fix-scheduling-latencies-in-get_user_pages 2004-10-21 14:54:32.172032600 -0700 +++ 25-akpm/mm/memory.c 2004-10-21 14:54:32.176031992 -0700 @@ -799,6 +799,7 @@ int get_user_pages(struct task_struct *t */ if (vm_io) goto no_follow; + cond_resched_lock(&mm->page_table_lock); while (!(map = follow_page(mm, start, lookup_write))) { /* * Shortcut for anonymous pages. We don't want _