It is not uncommon on busy servers to get stuck hundred of ms in vmalloc()
calls (like file descriptor expansions).
Add a cond_resched() to __vmalloc_area_node() to be gentle to
other tasks.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Hugh Dickins <hughd@google.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
goto fail;
}
area->pages[i] = page;
+ cond_resched();
}
if (map_vm_area(area, prot, &pages))