Loading
RDMA/hns: Fix a potential Sleep-in-Atomic-Context
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9GZX2 ---------------------------------------------------------------------- In hns_roce_get_bond_netdev(), a bond_mutex is locked. This may lead to a potential Sleep-in-Atomic-Context along with the iboe.lock in hns_roce_query_port(). Since hns_roce_get_bond_netdev() doesn't involve iboe, move the call out of the critical section of iboe.lock. Fixes: 2004b3f9 ("RDMA/hns: Support RoCE bonding") Signed-off-by:Junxian Huang <huangjunxian6@hisilicon.com> Signed-off-by:
Juan Zhou <zhoujuan51@h-partners.com>