Loading
RDMA/hns: Fix sleeping in spin_lock critical section
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAL7SX ---------------------------------------------------------------------- Sleep is not allowed in the spinlock critical section, but ib_umem_release() may sleep in the spinlock critical sectio. To fix it, use mutex_lock() instead of spin_lock(). Fixes: 431c875e ("RDMA/hns: Fix simultaneous reset and resource deregistration") Signed-off-by:wenglianfa <wenglianfa@huawei.com> Signed-off-by:
Xinghai Cen <cenxinghai@h-partners.com>