Commit 8f7e5053 authored by Xiongfeng Wang's avatar Xiongfeng Wang Committed by Xie XiuQi
Browse files

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: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarYao Hongbo <yaohongbo@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 914119ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment