From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans Westgaard Ry Subject: [PATCH v2 0/2] IB:mad Use ID allocator routines to allocate agent number Date: Thu, 7 Jun 2018 12:52:06 +0200 Message-ID: <20180607105208.16332-1-hans.westgaard.ry@oracle.com> References: <20180529073808.27735-1-hans.westgaard.ry@oracle.com> Return-path: In-Reply-To: <20180529073808.27735-1-hans.westgaard.ry@oracle.com> Sender: linux-kernel-owner@vger.kernel.org To: Doug Ledford , Jason Gunthorpe , Hakon Bugge , Parav Pandit , Jack Morgenstein , Pravin Shedge , Matthew Wilcox , Andrew Morton , Jeff Layton , Wei Wang , Chris Mi , Eric Biggers , Rasmus Villemoes , Mel Gorman , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-rdma@vger.kernel.org v2: Implement ida_get_simple_cyclic and use it when allocating ib_mad_client_ids. Hans Westgaard Ry (2): idr: Add ida_simple_get_cyclic IB/mad: Use ID allocator routines to allocate agent number drivers/infiniband/core/mad.c | 24 +++++++++++++--- include/linux/idr.h | 8 ++++-- lib/idr.c | 66 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 6 deletions(-) -- 2.14.3