Re: [patchset] Lockfree fd lookup 1 of 5

viro
2004-08-02T16:55:30Z

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?