Re: [PATCHSET] idr: implement idr_alloc() and convert existing users

From: Tejun Heo
Date: Tue Mar 26 2013 - 12:34:01 EST


Hello,

On Tue, Mar 26, 2013 at 12:30:11PM -0400, J. Bruce Fields wrote:
> The only requirements are that at a given moment in time id's should be
> unique, and that we should make some effort to avoid reusing them
> immediately.
>
> I don't know what other "cyclic" idr users need.

We already have other users and idr would at least behave better
(ie. fail faster) under extreme conditions, so sticking with idr might
not be too bad. The optimal would be bitmap + hashtable, I suppose.

Thanks.

--
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/