OSDN Git Service

RDMA/hns: Convert cq_table to XArray
authorMatthew Wilcox <willy@infradead.org>
Thu, 21 Feb 2019 00:20:39 +0000 (16:20 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 29 Mar 2019 17:40:40 +0000 (14:40 -0300)
commit27e19f45108959f99b23a414be391b6a2a282caa
treece3c464df852176a086056e7bd2d8e60a2acc43f
parent2b34c558022673c0d6393dd7941d417f1b5a7236
RDMA/hns: Convert cq_table to XArray

Change the locking to not disable interrupts as the lookup in interrupt
context will not see a freed CQ, thanks to the synchronize_irq() call
before freeing the CQ.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_cq.c
drivers/infiniband/hw/hns/hns_roce_device.h