OSDN Git Service

RDMA/devices: Use xarray to store the clients
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 7 Feb 2019 05:41:52 +0000 (22:41 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Feb 2019 23:56:45 +0000 (16:56 -0700)
commite59178d895afa29b671323f8265a1e50afe989e5
tree65e3c56bd4f7bc1780434ae50aa8fda0147d915d
parent3b88afd38e88d1bb2e900204ff0af7301a379a09
RDMA/devices: Use xarray to store the clients

This gives each client a unique ID and will let us move client_data to use
xarray, and revise the locking scheme.

clients have to be add/removed in strict FIFO/LIFO order as they
interdepend. To support this the client_ids are assigned to increase in
FIFO order. The existing linked list is kept to support reverse iteration
until xarray can get a reverse iteration API.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h