提交 572d9e11 编写于 作者: H Hao Fang 提交者: Xie XiuQi

ACC: crypto/hisilicon/qm: add printk_ratelimit for QM get queue busy

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

"QM all queues are busy!" will print more if multiple threads
request queues and the number of requests more than queues's.
Signed-off-by: NHao Fang <fanghao11@huawei.com>
Reviewed-by: Nwangzhou <wangzhou1@hisilicon.com>
Signed-off-by: Nlingmingqiang <lingmingqiang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 41762830
......@@ -1067,7 +1067,8 @@ struct hisi_qp *hisi_qm_create_qp(struct hisi_qm *qm, u8 alg_type)
qp_id = find_first_zero_bit(qm->qp_bitmap, qm->qp_num);
if (qp_id >= qm->qp_num) {
write_unlock(&qm->qps_lock);
dev_info(&qm->pdev->dev, "QM all queues are busy!\n");
dev_info_ratelimited(&qm->pdev->dev, "QM all queues are busy!\n");
ret = -EBUSY;
goto err_free_qp;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册