Messages in this thread | | | Date | Tue, 26 Mar 2013 09:33:51 -0700 | From | Tejun Heo <> | Subject | Re: [PATCHSET] idr: implement idr_alloc() and convert existing users |
| |
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
| |