[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE9FiQX-HKOm5qDsJycG_Yo5JPngk6dxSFehg9n6mmj2sbcmWQ@mail.gmail.com>
Date: Tue, 30 Apr 2013 14:29:35 -0700
From: Yinghai Lu <yinghai@...nel.org>
To: Bjorn Helgaas <bhelgaas@...gle.com>
Cc: Gu Zheng <guz.fnst@...fujitsu.com>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sarah Sharp <sarah.a.sharp@...ux.intel.com>
Subject: Re: [PATCH] PCI: Fix racing for pci device removing via sysfs
On Mon, Apr 29, 2013 at 3:17 PM, Yinghai Lu <yinghai@...nel.org> wrote:
> On Mon, Apr 29, 2013 at 11:15 AM, Bjorn Helgaas <bhelgaas@...gle.com> 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.
Thanks
Yinghai
Download attachment "fix_racing_removing_5.patch" of type "application/octet-stream" (5634 bytes)
Powered by blists - more mailing lists