RDMA/device: Use an ida instead of a free page in alloc_name
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 7 Feb 2019 05:41:51 +0000 (22:41 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:56:45 +0000 (16:56 -0700)
commit3b88afd38e88d1bb2e900204ff0af7301a379a09
treed6101020be909352e5e7b5e4d65bf40d5f351f0d
parent652432f33c01b2edaa5b2550b423cd894b1c7b9a
RDMA/device: Use an ida instead of a free page in alloc_name

ida is the proper data structure to hold list of clustered small integers
and then allocate an unused integer. Get rid of the convoluted and limited
open-coded bitmap.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c