[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180530151023.GB30754@ziepe.ca>
Date: Wed, 30 May 2018 09:10:23 -0600
From: Jason Gunthorpe <jgg@...pe.ca>
To: Hans Westgaard Ry <hans.westgaard.ry@...cle.com>
Cc: jackm <jackm@....mellanox.co.il>,
HÃ¥kon Bugge <haakon.bugge@...cle.com>,
Doug Ledford <dledford@...hat.com>,
Daniel Jurgens <danielj@...lanox.com>,
Parav Pandit <parav@...lanox.com>,
Pravin Shedge <pravin.shedge4linux@...il.com>,
OFED mailing list <linux-rdma@...r.kernel.org>,
linux-kernel@...r.kernel.org, Leon Romanovsky <leon@...nel.org>
Subject: Re: [PATCH] IB/mad: Use ID allocator routines to allocate agent
number
On Wed, May 30, 2018 at 02:22:56PM +0200, Hans Westgaard Ry wrote:
> We came up with this code snippet which we think handles both preventing
> immediate re-use and too big/wrapping...
Isn't this basically the same as idr_alloc_cyclic ?
Jason
Powered by blists - more mailing lists