mm: percpu-vmap fix RCU list walking
authorNick Piggin <npiggin@suse.de>
Mon, 1 Feb 2010 11:24:18 +0000 (22:24 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 2 Feb 2010 20:50:47 +0000 (12:50 -0800)
commitde5604231ce4bc8db1bc1dcd27d8540cbedf1518
tree1b64b0554b8ecffd58d4d06614075e5ccbb6bfb4
parent489b24f2cbdcc1c93f55a2707733bba702ba8dbf
mm: percpu-vmap fix RCU list walking

RCU list walking of the per-cpu vmap cache was broken.  It did not use
RCU primitives, and also the union of free_list and rcu_head is
obviously wrong (because free_list is indeed the list we are RCU
walking).

While we are there, remove a couple of unused fields from an earlier
iteration.

These APIs aren't actually used anywhere, because of problems with the
XFS conversion.  Christoph has now verified that the problems are solved
with these patches.  Also it is an exported interface, so I think it
will be good to be merged now (and Christoph wants to get the XFS
changes into their local tree).

Cc: stable@kernel.org
Cc: linux-mm@kvack.org
Tested-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Nick Piggin <npiggin@suse.de>
--
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c