]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/restrack: Prepare restrack_root to addition of extra fields per-type
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 18 Feb 2019 20:25:48 +0000 (22:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Feb 2019 17:13:38 +0000 (10:13 -0700)
commit7c77c6a9bf9d71711dd3f89858bb0f5157a11919
tree8c7f62c751d056b92cad308589fbb04089a65853
parent41eda65c6100930d95bb854a0114f3544593070c
RDMA/restrack: Prepare restrack_root to addition of extra fields per-type

As a preparation to extension of rdma_restrack_root to provide software
IDs, which will be per-type too. We convert the rdma_restrack_root from
struct with arrays to array of structs.

Such conversion allows us to drop rwsem lock in favour of internal XArray
lock.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c
drivers/infiniband/core/restrack.c
drivers/infiniband/core/restrack.h