Re: [PATCH] PCI: Fix racing for pci device removing via sysfs

From: Yinghai Lu
Date: Tue Apr 30 2013 - 17:29:41 EST

On Mon, Apr 29, 2013 at 3:17 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
> On Mon, Apr 29, 2013 at 11:15 AM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote:
>> I think the 1a:01.0 pci_dev should retain its reference to the pci_bus
>> for as long as the pci_dev exists, so the pci_bus_put() should go in
>> pci_release_dev() instead.
> Good point.
> will rework pci remove sequence.

Please check attached version that will not need to touch pci sysfs bits.



Attachment: fix_racing_removing_5.patch
Description: Binary data