Loading
RDMA/hns: Fix cpu stuck by printings during reset
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9SI44 ---------------------------------------------------------------------- During the reset, issuing the cmdq command to destroy resources such as qp, cq, and mr may fail, and the destruction failure information is printed. When a large number of resources fail to be destroyed, printk() causes multiple threads to compete for a global log buffer spinlock. As a result, the CPU performance deteriorates and the CPU is stuck. To fix it, use a function like printk_limit_rate() to limit the print frequency of printk(). Fixes: 9a443537 ("IB/hns: Add driver files for hns RoCE driver") Fixes: c7bcb134 ("RDMA/hns: Add SRQ support for hip08 kernel mode") Fixes: 626903e9 ("RDMA/hns: Add support for reporting wc as software mode") Fixes: 6eef5242 ("RDMA/hns: Replace not intuitive function/macro names") Fixes: 6f5f556d ("RDMA/hns: Use the reserved loopback QPs to free MR before destroying MPT") Fixes: 357f3429 ("RDMA/hns: Simplify the state judgment code of qp") Fixes: 926a01dc ("RDMA/hns: Add QP operations support for hip08 SoC") Fixes: 0273952c ("RDMA/hns: Add method to detach WQE buffer") Fixes: 9c9edf68 ("RDMA/hns: Remove redundant DFX file and DFX ops structure") Signed-off-by:Chengchang Tang <tangchengchang@huawei.com> Signed-off-by:
Guofeng Yue <yueguofeng@h-partners.com>