]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/vmalloc.c: add a schedule point to vmalloc()
authorEric Dumazet <edumazet@google.com>
Thu, 26 Jun 2014 00:42:42 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:42 +0000 (10:42 +1000)
commite774d946ea9f7f01bf13d45d7ef76a854fc60d12
treef7085c924269e898b13d868971ec2cbc49873a35
parent7a4f4a4ff738121799f6a64714692a23926506f4
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.

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>
mm/vmalloc.c