Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libhns: Fix no locking in the exception branch of wr start()
According to the man page ibv_wr_post.3.md, "The provider should provide locking to ensure that ibv_wr_start() and ibv_wr_complete()/abort() form a per-QP critical section where no other threads can enter." Currently the exception branch of wr_start() is not locked, add a lock here. Fixes: 36446a5 ("libhns: Extended QP supports the new post send mechanism") Signed-off-by: wenglianfa <wenglianfa@huawei.com> Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
- Loading branch information