OSDN Git Service

RDMA/restrack: Convert internal DB from hash to XArray
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 18 Feb 2019 20:25:43 +0000 (22:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Feb 2019 04:04:36 +0000 (21:04 -0700)
commitfd47c2f99f04249d1ba82c422d1818dcbe193908
treeba51844cae66a900a3c8ceeda5fb973417a5aef7
parent5f8f5499005c51656645a011bca81ffb66fcaaca
RDMA/restrack: Convert internal DB from hash to XArray

The additions of .doit callbacks posses new access pattern to the resource
entries by some user visible index. Back then, the legacy DB was
implemented as hash because per-index access wasn't needed and XArray
wasn't accepted yet.

Acceptance of XArray together with per-index access requires the refresh
of DB implementation.

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
include/rdma/restrack.h