Re: [PATCH] pciehp: fix a race between pciehp and removing operations by sysfs

2019-08-05 Thread Lukas Wunner
On Fri, Aug 02, 2019 at 04:23:33PM +0800, Xiongfeng Wang wrote: > If I use a global flag to mark if any pci device is being rescaned or > removed, the problem is that we can't remove two devices belonging to > two root ports at the same time. > Since a root port produces a pci tree, so I was

Re: [PATCH] pciehp: fix a race between pciehp and removing operations by sysfs

2019-08-02 Thread Xiongfeng Wang
On 2019/8/2 8:36, Bjorn Helgaas wrote: > On Mon, Feb 26, 2018 at 08:41:15PM +0800, Xiongfeng Wang wrote: >> From: Xiongfeng Wang >> >> When I run a stress test about pcie hotplug and removing operations by >> sysfs, I got a hange task, and the following call trace is printed. > > It's been so

Re: [PATCH] pciehp: fix a race between pciehp and removing operations by sysfs

2019-08-01 Thread Bjorn Helgaas
On Mon, Feb 26, 2018 at 08:41:15PM +0800, Xiongfeng Wang wrote: > From: Xiongfeng Wang > > When I run a stress test about pcie hotplug and removing operations by > sysfs, I got a hange task, and the following call trace is printed. It's been so long that I'm embarrassed to even respond to this,

[PATCH] pciehp: fix a race between pciehp and removing operations by sysfs

2018-02-26 Thread Xiongfeng Wang
From: Xiongfeng Wang When I run a stress test about pcie hotplug and removing operations by sysfs, I got a hange task, and the following call trace is printed. INFO: task kworker/0:2:4413 blocked for more than 120 seconds. Tainted: PW O4.12.0-rc1

[PATCH] pciehp: fix a race between pciehp and removing operations by sysfs

2018-02-26 Thread Xiongfeng Wang
From: Xiongfeng Wang When I run a stress test about pcie hotplug and removing operations by sysfs, I got a hange task, and the following call trace is printed. INFO: task kworker/0:2:4413 blocked for more than 120 seconds. Tainted: PW O4.12.0-rc1 #1 "echo 0 >