diff options
author | Long Li <[email protected]> | 2017-03-23 14:58:10 -0700 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2017-03-24 09:50:25 -0500 |
commit | d3a78d8bf759d8848339dcc367c4c1678b57a08b (patch) | |
tree | d2fa946c39abdfdd6c78e068f44ec3892a9c0de8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) |
PCI: hv: Properly handle PCI bus remove
hv_pci_devices_present() is called in hv_pci_remove() when we remove a PCI
device from the host, e.g., by disabling SR-IOV on a device. In
hv_pci_remove(), the bus is already removed before the call, so we don't
need to rescan the bus in the workqueue scheduled from
hv_pci_devices_present().
By introducing bus state hv_pcibus_removed, we can avoid this situation.
Reported-by: Xiaofeng Wang <[email protected]>
Signed-off-by: Long Li <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: K. Y. Srinivasan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions