Re: [PATCH] Cpuset: rcu optimization of page alloc hook
From: Nick Piggin
Date: Mon Dec 12 2005 - 04:38:30 EST
Andrew Morton wrote:
Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:
Is it a good idea for all kmem_cache_t? If so, can we move
__read_mostly to the type definition?
Yes, I suppose that's worthwhile.
We've been shuffling towards removing kmem_cache_t in favour of `struct
kmem_cache', but this is an argument against doing that.
If we can work out how:
void foo()
{
kmem_cache_t *p;
}
That'll barf.
Mmm. And the structure within structure, which Eric points out. I assumed
without grepping that those were mostly confined to slab itself and would
be easy to special case, but it turns out networking makes some use of
them too.
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
-
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/