]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/hns: Fix warning storm caused by invalid input in IO path
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 20 Dec 2024 05:52:48 +0000 (13:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:28:45 +0000 (13:28 +0100)
commit06e2d3ec7a7d76b6b92292891276e266003a6db9
treea91409e02c8bbeed5c30aa87a13be2542a32d894
parent3146512f40bb779ef6faad0570470bde44f16d34
RDMA/hns: Fix warning storm caused by invalid input in IO path

[ Upstream commit fa5c4ba8cdbfd2c2d6422e001311c8213283ebbf ]

WARN_ON() is called in the IO path. And it could lead to a warning
storm. Use WARN_ON_ONCE() instead of WARN_ON().

Fixes: 12542f1de179 ("RDMA/hns: Refactor process about opcode in post_send()")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20241220055249.146943-4-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c