]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlb: abort a hugepage pool resize if a signal is pending
authorMel Gorman <mel@csn.ul.ie>
Tue, 15 Dec 2009 01:59:56 +0000 (17:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:24 +0000 (08:53 -0800)
commita5fec868e522e31ec175b6a3510401b843f71310
treee4755bb36c232262a2ebadb055d8947acb39b672
parent111f1d3ff36b17d9c427a2d6505b6bde4e95a820
hugetlb: abort a hugepage pool resize if a signal is pending

If a user asks for a hugepage pool resize but specified a large number,
the machine can begin trashing.  In response, they might hit ctrl-c but
signals are ignored and the pool resize continues until it fails an
allocation.  This can take a considerable amount of time so this patch
aborts a pool resize if a signal is pending.

Suggested by Dave Hansen.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c