]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] drain_node_page(): Drain pages in batch units
authorChristoph Lameter <clameter@sgi.com>
Thu, 7 Dec 2006 04:33:02 +0000 (20:33 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:23 +0000 (08:39 -0800)
commitddb720f715578dbd48fcfbd7fde1a47b88c72558
tree3c2cf7e13ecf991c58ffc00617757fcdeb3d863f
parent4aefd256b65537bb577dfed7282deb4312287800
[PATCH] drain_node_page(): Drain pages in batch units

drain_node_pages() currently drains the complete pageset of all pages.  If
there are a large number of pages in the queues then we may hold off
interrupts for too long.

Duplicate the method used in free_hot_cold_page.  Only drain pcp->batch
pages at one time.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c