Loading
RDMA/hns: Fix CPU stuck due to read polling during reset
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9SI44 ---------------------------------------------------------------------- This read polling mostly ensures that resources such as qp are not destroyed during hw resetting. But if the polling times out, it doesn't work. To instead it, a mechanism for delaying resource destruction has been introduced to fully ensure that. Read polling wastes too much CPU time and resources causing the cpu stuck. And the role of polling has been replaced, remove read_poll_timeout_atomic() to fix it. Fixes: 306b8c76 ("RDMA/hns: Do not destroy QP resources in the hw resetting phase") Signed-off-by:wenglianfa <wenglianfa@huawei.com> Signed-off-by:
Guofeng Yue <yueguofeng@h-partners.com>