Re: [PATCH v8 06/22] PCI: split registration of PCI bus devices into two stages

2013-01-14 Thread Yinghai Lu
On Sun, Jan 13, 2013 at 7:25 AM, Jiang Liu wrote: > On 01/13/2013 06:34 AM, Rafael J. Wysocki wrote: >> On Friday, January 11, 2013 02:40:33 PM Yinghai Lu wrote: >>> From: Jiang Liu >>> >>> When handling BUS_NOTIFY_ADD_DEVICE event for a PCI bridge device, >>> the notification handler can't hold

Re: [PATCH v8 06/22] PCI: split registration of PCI bus devices into two stages

2013-01-13 Thread Jiang Liu
On 01/13/2013 06:34 AM, Rafael J. Wysocki wrote: > On Friday, January 11, 2013 02:40:33 PM Yinghai Lu wrote: >> From: Jiang Liu >> >> When handling BUS_NOTIFY_ADD_DEVICE event for a PCI bridge device, >> the notification handler can't hold reference count to the new PCI bus >> because the device o

Re: [PATCH v8 06/22] PCI: split registration of PCI bus devices into two stages

2013-01-12 Thread Rafael J. Wysocki
On Friday, January 11, 2013 02:40:33 PM Yinghai Lu wrote: > From: Jiang Liu > > When handling BUS_NOTIFY_ADD_DEVICE event for a PCI bridge device, > the notification handler can't hold reference count to the new PCI bus > because the device object for the new bus (pci_dev->subordinate->dev) > has

[PATCH v8 06/22] PCI: split registration of PCI bus devices into two stages

2013-01-11 Thread Yinghai Lu
From: Jiang Liu When handling BUS_NOTIFY_ADD_DEVICE event for a PCI bridge device, the notification handler can't hold reference count to the new PCI bus because the device object for the new bus (pci_dev->subordinate->dev) hasn't been initialized yet. Split the registration of PCI bus device in