RDMA/hns: move spin_lock_irqsave to hw_v1.ko when hip06 set gid
driver inclusion category: bugfix bugzilla: NA CVE: NA 1.When hip08 set gid, hw_v2.ko will call spin_unlock_bh when send cmq. if main.ko call spin_lock_irqsave firstly, and the kernel is before commit f71b74bc ("irq/softirqs: Use lockdep to assert IRQs are disabled/enabled"), it will cause WARN_ON_ONCE because of calling spin_unlock_bh in disable context. 2. In fact, the spin_lock_irqsave in main.ko is only used for hip06, and should be placed in hns_roce_hw_v1.c. hns_roce_hw_v2.c uses its own spin_unlock_bh and does not need main.ko manage spin_lock. Fixes: 29b3d4fe7fc3 ("RDMA/hns:Remove redundant spin_lock operations") Feature or Bugfix:Bugfix Signed-off-by: NLang Cheng <chenglang@huawei.com> Reviewed-by: Noulijun <oulijun@huawei.com> Reviewed-by: Nliuyixian <liuyixian@huawei.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录