Re: [patchset] Lockfree fd lookup 1 of 5

From: viro
Date: Mon Aug 02 2004 - 11:58:42 EST


On Mon, Aug 02, 2004 at 02:38:25PM +0100, Christoph Hellwig wrote:
> On Mon, Aug 02, 2004 at 03:43:52PM +0530, Ravikiran G Thirumalai wrote:
> > Here's the first patch. This patch 'shrinks' struct kref by removing
> > the release pointer in the struct kref. GregKH has applied this to his tree
>
> What's the advantage of this kref API over opencoded atomic_t usage?

More interesting question is how much does it win compared to simple
switch to rwlock?
-
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/