kernel_samsung_a53x/drivers/infiniband/hw/hns
Yangyang Li 2e3059f198 RDMA/hns: Use mutex instead of spinlock for ida allocation
commit 9293d3fcb70583f2c786f04ca788af026b7c4c5c upstream.

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: 71586dd20010 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 12:27:19 +01:00
..
hns_roce_ah.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_alloc.c RDMA/hns: Refactor the hns_roce_buf allocation flow 2024-11-19 12:26:58 +01:00
hns_roce_cmd.c RDMA/hns: Fix incorrect symbol types 2024-11-19 12:26:58 +01:00
hns_roce_cmd.h RDMA/hns: Fix incorrect symbol types 2024-11-19 12:26:58 +01:00
hns_roce_common.h RDMA/hns: Fix incorrect symbol types 2024-11-19 12:26:58 +01:00
hns_roce_cq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_db.c RDMA/hns: Fix incorrect symbol types 2024-11-19 12:26:58 +01:00
hns_roce_device.h RDMA/hns: Use mutex instead of spinlock for ida allocation 2024-11-19 12:27:19 +01:00
hns_roce_hem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_hem.h RDMA/hns: Use complete parentheses in macros 2024-11-19 12:26:59 +01:00
hns_roce_hw_v1.c RDMA/hns: Fix incorrect symbol types 2024-11-19 12:26:58 +01:00
hns_roce_hw_v1.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_hw_v2.c RDMA/hns: Modify the print level of CQE error 2024-11-19 12:26:59 +01:00
hns_roce_hw_v2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_hw_v2_dfx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_main.c RDMA/hns: Fix incorrect symbol types 2024-11-19 12:26:58 +01:00
hns_roce_mr.c RDMA/hns: Fix return value in hns_roce_map_mr_sg 2024-11-19 12:26:59 +01:00
hns_roce_pd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_qp.c RDMA/hns: Use mutex instead of spinlock for ida allocation 2024-11-19 12:27:19 +01:00
hns_roce_restrack.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns_roce_srq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00