Re: [PATCH] blockgroup_lock: hashed spinlocks for ext2 and ext3

From: Andrew Morton (akpm@digeo.com)
Date: Mon Apr 14 2003 - 16:58:52 EST


Andi Kleen <ak@suse.de> wrote:
>
> >
> > And this hashed lock is not a per-cpu thing. (No locks are!) It just uses
> > NR_CPUS to decide how big the hash should be.
>
> Isn't that what the IBM kmalloc_per_cpu() was for ? (I think the patch
> was from Dipankar)

This is not a per-cpu data structure.

It is a hashed spinlock which uses NR_CPUS as a sizing hint.

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



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:34 EST