Messages in this thread Patch in this message | | | Date | Tue, 14 Sep 2004 12:59:04 +0200 | From | Ingo Molnar <> | Subject | [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.
Ingo
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 <mingo@elte.hu>
--- linux/mm/memory.c.orig +++ linux/mm/memory.c @@ -781,6 +781,8 @@ int get_user_pages(struct task_struct *t 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
| |