Commit a9f3cca1 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] sched: mm: fix scheduling latencies in get_user_pages()

The attached patch fixes long scheduling latencies in get_user_pages().

Has been tested as part of the -VP patchset.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 94017c75
......@@ -920,6 +920,8 @@ int get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
do {
struct page *map;
int lookup_write = write;
cond_resched_lock(&mm->page_table_lock);
while (!(map = follow_page(mm, start, lookup_write))) {
/*
* Shortcut for anonymous pages. We don't want
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment