Hi Yinghai,
Good points! It's safe with current implementation because
all root bus hotplug operations are under protection of
pci_remove_rescan_mutex.
On 2012-3-13 14:24, Yinghai Lu wrote:
On Sun, Mar 11, 2012 at 10:48 AM, Jiang Liu<liuj97@xxxxxxxxx> wrote:
The function pci_create_root_bus() allocates the pci bus structure,
registers the bus device and creates the legacy files for a pci root
bus, but returns without setting the is_added flag. The is_added flag
for a pci root bus will be set by function pci_scan_child_bus().
If a pci root bus is destroyed before calling pci_scan_child_bus(),
the is_added flag will not be set.
how that can be met?
Do we have pci_remove_rescan_mutex around them?
Yinghai
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html