diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-13 05:12:55 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-20 04:52:18 +0100 |
commit | 6cc2c8e535ec19153714cee62e11e4d9ac2ea953 (patch) | |
tree | 0c9f07b2e1b2e1249d6bbafda3d9557a6074ee49 /drivers/infiniband/sw/rxe/rxe.c | |
parent | RDMA/rxe: Use driver_unregister and new unregistration API (diff) | |
download | linux-6cc2c8e535ec19153714cee62e11e4d9ac2ea953.tar.xz linux-6cc2c8e535ec19153714cee62e11e4d9ac2ea953.zip |
RDMA/rxe: Add ib_device_get_by_name() and use it in rxe
rxe has an open coded version of this that is not as safe as the core
version. This lets us eliminate the internal device list entirely from
rxe.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe.c b/drivers/infiniband/sw/rxe/rxe.c index cd93c546c008..08a45ce9cab5 100644 --- a/drivers/infiniband/sw/rxe/rxe.c +++ b/drivers/infiniband/sw/rxe/rxe.c @@ -69,8 +69,6 @@ void rxe_dealloc(struct ib_device *ib_dev) if (rxe->tfm) crypto_free_shash(rxe->tfm); - - list_del(&rxe->list); } /* initialize rxe device parameters */ @@ -275,7 +273,6 @@ static int rxe_init(struct rxe_dev *rxe) spin_lock_init(&rxe->mmap_offset_lock); spin_lock_init(&rxe->pending_lock); INIT_LIST_HEAD(&rxe->pending_mmaps); - INIT_LIST_HEAD(&rxe->list); mutex_init(&rxe->usdev_lock); |