percpu: fix too lazy vunmap cache flushing
authorTejun Heo <tj@kernel.org>
Mon, 22 Jun 2009 02:56:23 +0000 (11:56 +0900)
committerTejun Heo <tj@kernel.org>
Mon, 22 Jun 2009 02:56:23 +0000 (11:56 +0900)
commit85ae87c1ad8e18a421e7448a99a42ecda183f29f
tree8fcf3fe5bc9a96a1c16244950d944d4a4e7130c5
parentf234012f52a37e48f2330e1ca2df69800e797c3b
percpu: fix too lazy vunmap cache flushing

In pcpu_unmap(), flushing virtual cache on vunmap can't be delayed as
the page is going to be returned to the page allocator.  Only TLB
flushing can be put off such that vmalloc code can handle it lazily.
Fix it.

[ Impact: fix subtle virtual cache flush bug ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Ingo Molnar <mingo@elte.hu>
mm/percpu.c