quicklist: Set tlb->need_flush if pages are remaining in quicklist 0
commit421d99193537a6522aac2148286f08792167d5fd
authorChristoph Lameter <clameter@sgi.com>
Tue, 18 Dec 2007 00:20:27 +0000 (17 16:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 18 Dec 2007 03:28:17 +0000 (17 19:28 -0800)
tree1d2d8e83ade8002be9d7284be720dc7cbdaccb1a
parent3811dbf67162bd08412f1b0e02e554f353e93bdb
quicklist: Set tlb->need_flush if pages are remaining in quicklist 0

This ensures that the quicklists are drained. Otherwise draining may only
occur when the processor reaches an idle state.

Fixes fatal leakage of pgd_t's on 2.6.22 and later.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Reported-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/tlb.h