lkml.org 
[lkml]   [2011]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] PCI: Only call pci_stop_bus_device() one time for children devices during removing
On Tue, 22 Nov 2011 21:06:53 -0800
Yinghai Lu <yinghai.lu@oracle.com> wrote:

>
> During debugging pcie hotplug with SRIOV with pcie switch, found
> pci_stop_bus_device() are called several times for some children devices.
>
> Current pci_remove_bus_device() will call pci_stop_bus_device() at first.
> and then use remove_behind_bridge() to call pci_stop_bus_device() for children
> devices. But pci_stop_bus_device() already include depth first to stop children.
> So We can remove unnecessary calling in pci_remove_behind_bridge() for children.
>
> The patch change original pci_remove_bus_device() to __pci_remove_bus_device(), and
> it only do remove work, and new pci_remove_bus_device will call
> pci_stop_bus_device() one time, and then call __pci_remove_bus_device().
>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>

applied to linux-next, thanks.

--
Jesse Barnes, Intel Open Source Technology Center
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2011-12-05 20:37    [W:0.057 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site