linux/drivers/infiniband
Yangyang Li 9293d3fcb7 RDMA/hns: Use mutex instead of spinlock for ida allocation
GFP_KERNEL may cause ida_alloc_range() to sleep, but the spinlock covering
this function is not allowed to sleep, so the spinlock needs to be changed
to mutex.

As there is a certain chance of memory allocation failure, GFP_ATOMIC is
not suitable for QP allocation scenarios.

Fixes: 71586dd200 ("RDMA/hns: Create QP with selected QPN for bank load balance")
Link: https://lore.kernel.org/r/1611048513-28663-1-git-send-email-liweihang@huawei.com
Signed-off-by: Yangyang Li <liyangyang20@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-01-19 20:20:13 -04:00
..
core RDMA/cma: Fix error flow in default_roce_mode_store 2021-01-14 12:53:13 -04:00
hw RDMA/hns: Use mutex instead of spinlock for ida allocation 2021-01-19 20:20:13 -04:00
sw RDMA/rxe: Use acquire/release for memory ordering 2020-12-11 19:57:48 -04:00
ulp block/rnbd-clt: Does not request pdu to rtrs-clt 2020-12-16 14:56:09 -07:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00