Re: [PATCH UPDATED] percpu: use dynamic percpu allocator as the defaultpercpu allocator

From: Tejun Heo
Date: Tue Mar 31 2009 - 20:22:44 EST


Hello,

Christoph Lameter wrote:
> Needs additional feedback and review by Tejun I would think. Just compile
> tested so far. The removal of the rbtree also relaxes locking restrictions
> for pcpu_chunk_address_search (which is not really searching anymore).
>
> Subject: dynamic percpu allocator: Remove rbtree
>
> The rbtree is used to determine the chunk from the virtual address. However,
> we can already determine the page struct from a virtual address and there
> are several unused fields in page struct used by vmalloc. Use the index
> field to store a pointer to the chunk. Then there is no need anymore for
> an rbtree.
>
> Signed-off-by: Christoph Lameter <cl@xxxxxxxxx>

This is great. I'll integrate the patch and test it soonish but with
LSF on the next week, I'll probably be slow during the next two weeks.

Thanks a lot.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/