Skip to content
Commit 0df91bb6 authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA/devices: Use xarray to store the client_data



Now that we have a small ID for each client we can use xarray instead of
linearly searching linked lists for client data. This will give much
faster and scalable client data lookup, and will lets us revise the
locking scheme.

Since xarray can store 'going_down' using a mark just entirely eliminate
the struct ib_client_data and directly store the client_data value in the
xarray. However this does require a special iterator as we must still
iterate over any NULL client_data values.

Also eliminate the client_data_lock in favour of internal xarray locking.

Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent e59178d8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment