From: Eric Dumazet Date: Wed, 6 Aug 2014 23:06:25 +0000 (-0700) Subject: mm/vmalloc.c: add a schedule point to vmalloc() X-Git-Tag: cleanup-for-v3.18~96^2~140 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=660654f90e7f8f6d8163276d47fc1573a39c7007;p=pandora-kernel.git mm/vmalloc.c: add a schedule point to vmalloc() 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. [akpm@linux-foundation.org: only do it for __GFP_WAIT, per David] Signed-off-by: Eric Dumazet Cc: Hugh Dickins Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed