diff options
author | 2024-10-24 20:39:57 +0800 | |
---|---|---|
committer | 2024-10-30 14:13:54 +0200 | |
commit | 377a2097705b915325a67e4d44f9f2844e567809 (patch) | |
tree | 329451a642f53bbef7014f2e617e23e21434bd0a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | RDMA/hns: Fix an AEQE overflow error caused by untimely update of eq_db_ci (diff) | |
download | wireguard-linux-377a2097705b915325a67e4d44f9f2844e567809.tar.xz wireguard-linux-377a2097705b915325a67e4d44f9f2844e567809.zip |
RDMA/hns: Fix flush cqe error when racing with destroy qp
QP needs to be modified to IB_QPS_ERROR to trigger HW flush cqe. But
when this process races with destroy qp, the destroy-qp process may
modify the QP to IB_QPS_RESET first. In this case flush cqe will fail
since it is invalid to modify qp from IB_QPS_RESET to IB_QPS_ERROR.
Add lock and bit flag to make sure pending flush cqe work is completed
first and no more new works will be added.
Fixes: ffd541d45726 ("RDMA/hns: Add the workqueue framework for flush cqe handler")
Signed-off-by: wenglianfa <wenglianfa@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20241024124000.2931869-3-huangjunxian6@hisilicon.com
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions