mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 09:04:51 +08:00
8b436a99cd
If hns_roce_cmd_use_events() fails then it means that the poll_sem is not obtained, but the poll_sem is released in hns_roce_cmd_use_polling(), this will cause an unlock problem. This is the static checker warning: drivers/infiniband/hw/hns/hns_roce_main.c:926 hns_roce_init() error: double unlocked '&hr_dev->cmd.poll_sem' (orig line 879) Event mode and polling mode are mutually exclusive and resources are separated, so there is no need to process polling mode resources in event mode. The initial mode of cmd is polling mode, so even if cmd fails to switch to event mode, it is not necessary to switch to polling mode. Fixes: |
||
---|---|---|
.. | ||
hns_roce_ah.c | ||
hns_roce_alloc.c | ||
hns_roce_cmd.c | ||
hns_roce_cmd.h | ||
hns_roce_common.h | ||
hns_roce_cq.c | ||
hns_roce_db.c | ||
hns_roce_device.h | ||
hns_roce_hem.c | ||
hns_roce_hem.h | ||
hns_roce_hw_v1.c | ||
hns_roce_hw_v1.h | ||
hns_roce_hw_v2_dfx.c | ||
hns_roce_hw_v2.c | ||
hns_roce_hw_v2.h | ||
hns_roce_main.c | ||
hns_roce_mr.c | ||
hns_roce_pd.c | ||
hns_roce_qp.c | ||
hns_roce_restrack.c | ||
hns_roce_srq.c | ||
Kconfig | ||
Makefile |