Commit 1edddd9b authored by Yangyang Li's avatar Yangyang Li Committed by Xie XiuQi
Browse files

RDMA/hns: Add reference count for ucontext



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

Because OFED does not guarantee the order of execution of
hns_roce_vma_close and hns_roce_dealloc_ucontext, driver
needs to increase the reference count of the "context" to
ensure that the "context" will not be released when
hns_roce_dealloc_ucontext is executed first, until the vma
that depends on the "context" is completely released, then
the "context" is released.

Feature or Bugfix:Bugfix

Signed-off-by: default avatarYangyang Li <liyangyang20@huawei.com>
Reviewed-by: default avatarwangxi <wangxi11@huawei.com>
Reviewed-by: default avataroulijun <oulijun@huawei.com>
Reviewed-by: default avatarliuyixian <liuyixian@huawei.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent e9e3c56f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment