percpu: perform tlb flush after pcpu_map_pages() failure
authorTejun Heo <tj@kernel.org>
Fri, 15 Aug 2014 20:06:10 +0000 (16:06 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 15 Aug 2014 20:06:10 +0000 (16:06 -0400)
commit849f5169097e1ba35b90ac9df76b5bb6f9c0aabd
treed8dd8a5a10a143dd93178522108fa0da1dfd358e
parentf0d279654dea22b7a6ad34b9334aee80cda62cde
percpu: perform tlb flush after pcpu_map_pages() failure

If pcpu_map_pages() fails midway, it unmaps the already mapped pages.
Currently, it doesn't flush tlb after the partial unmapping.  This may
be okay in most cases as the established mapping hasn't been used at
that point but it can go wrong and when it goes wrong it'd be
extremely difficult to track down.

Flush tlb after the partial unmapping.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org
mm/percpu-vm.c