pciehp: do not wake up irq_thread for sysfs operation
hulk inclusion
category: bugfix
bugzilla: NA
CVE: NA
-------------------
This patch fix the same issue as commit cdda3bbfd0ca ("pciehp: use
completion to wait irq_thread 'pciehp_ist'"). But the previous patch
didn't fix the issue completely. This patch power off the slot directly
instead of waking up the irq_thread 'pciehp_ist'
This patch also check 'slot_being_removed_rescanned' before powering off
the slot to avoid the dead lock issue similar as commit 764cafd9875e
("pciehp: fix a race between pciehp and removing operations by sysfs")
Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: NYao Hongbo <yaohongbo@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录