Skip to content

Commit

Permalink
RDMA/devices: Use xarray to store the client_data
Browse files Browse the repository at this point in the history
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: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
jgunthorpe committed Feb 8, 2019
1 parent e59178d commit 0df91bb
Show file tree
Hide file tree
Showing 2 changed files with 186 additions and 185 deletions.
Loading

0 comments on commit 0df91bb

Please sign in to comment.