]> git.baikalelectronics.ru Git - kernel.git/commit
page allocator: Do not allow interrupts to use ALLOC_HARDER
authorMel Gorman <mel@csn.ul.ie>
Wed, 11 Nov 2009 22:26:17 +0000 (14:26 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Nov 2009 15:25:56 +0000 (07:25 -0800)
commit2532c80e03f4315151ad60474bcba46822d3ee54
tree71ecabae46aa132545ca39dd0da62c483d69c20b
parentfe70fe307439f5911eb928ff26cfe2dcb0f3ed9c
page allocator: Do not allow interrupts to use ALLOC_HARDER

Commit 93b881f7cf4a31ced68fd8f2144b1534637e2630 ("page allocator:
calculate the alloc_flags for allocation only once") altered watermark
logic slightly by allowing rt_tasks that are handling an interrupt to set
ALLOC_HARDER.  This patch brings the watermark logic more in line with
2.6.30.

This change results in a reduction of the number high-order GFP_ATOMIC
allocation failures reported.  See
http://www.gossamer-threads.com/lists/linux/kernel/1144153

[rientjes@google.com: Spotted the problem]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c