linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/5] PCI: introduce hotplug safe bus searching interfaces
@ 2012-03-11 17:48 Jiang Liu
  2012-03-11 17:48 ` [PATCH 1/5] Fix device reference count leakage in pci_dev_present() Jiang Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Jiang Liu @ 2012-03-11 17:48 UTC (permalink / raw)
  To: Yinghai Lu, Jesse Barnes, Bjorn Helgaas
  Cc: Jiang Liu, Ashok Raj, Suresh Siddha, Youquan Song, linux-pci,
	linux-kernel, chenkeping

This patchset is based on Yinghai's pci root bus hotplug v2, please refer to:
http://www.spinics.net/lists/linux-pci/msg14194.html.
The first three patches are minor bug fixes against the pci root bus hotplug
code. The forth/fifth is a proposal to introduce a series of pci hotplug safe
interfaces to search pci buses. This is aimed to solve possible race
conditions when doing pci root bus/pci bus hotplug. The proposal is here to
show the idea, and hasn't been fully tested yet. If it's on the right way,
I will refine it and do thorough tests.

Jiang Liu (5):
  Fix device reference count leakage in pci_dev_present()
  Correctly clean up pci root buses in function pci_remove_bus()
  Fix an access-after-free issue in function pci_stop_and_remove_bus()
  Introduce hotplug-safe pci bus searching interfaces
  Replace old pci bus searching function calls with hotplug safe ones

 arch/frv/mb93090-mb00/pci-vdk.c        |    2 +-
 arch/x86/pci/common.c                  |    9 +-
 arch/x86/pci/irq.c                     |    2 +-
 arch/x86/pci/legacy.c                  |    2 +-
 drivers/acpi/pci_root.c                |    2 +-
 drivers/acpi/pci_root_hp.c             |    2 +-
 drivers/acpi/pci_slot.c                |    6 +-
 drivers/acpi/reboot.c                  |    3 +-
 drivers/edac/i7core_edac.c             |    2 +-
 drivers/gpu/vga/vgaarb.c               |    3 +-
 drivers/iommu/dmar.c                   |    6 +-
 drivers/pci/bus.c                      |   20 ++++-
 drivers/pci/hotplug/cpci_hotplug_pci.c |    4 +-
 drivers/pci/hotplug/ibmphp_core.c      |    8 +-
 drivers/pci/hotplug/sgi_hotplug.c      |    3 +-
 drivers/pci/hotplug/shpchp_pci.c       |    4 +-
 drivers/pci/hotplug/shpchp_sysfs.c     |    2 +-
 drivers/pci/iov.c                      |    6 +-
 drivers/pci/pci-sysfs.c                |    2 +-
 drivers/pci/pci.c                      |    2 +-
 drivers/pci/pcie/pme.c                 |   16 +---
 drivers/pci/probe.c                    |   11 ++-
 drivers/pci/remove.c                   |   15 ++--
 drivers/pci/search.c                   |  168 ++++++++++++++++++++++++++-----
 drivers/pci/xen-pcifront.c             |    6 +-
 include/linux/pci.h                    |    8 ++
 26 files changed, 230 insertions(+), 84 deletions(-)

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-03-13  8:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-11 17:48 [RFC PATCH 0/5] PCI: introduce hotplug safe bus searching interfaces Jiang Liu
2012-03-11 17:48 ` [PATCH 1/5] Fix device reference count leakage in pci_dev_present() Jiang Liu
2012-03-11 17:48 ` [PATCH 2/5] Correctly clean up pci root buses in function pci_remove_bus() Jiang Liu
2012-03-13  6:24   ` Yinghai Lu
2012-03-13  7:23     ` Jiang Liu
2012-03-11 17:48 ` [PATCH 3/5] Fix an access-after-free issue in function pci_stop_and_remove_bus() Jiang Liu
2012-03-13  3:47   ` Bjorn Helgaas
2012-03-11 17:48 ` [RFC PATCH 4/5] PCI: Introduce hotplug-safe pci bus searching interfaces Jiang Liu
2012-03-13  3:49   ` Bjorn Helgaas
2012-03-13  8:13     ` Jiang Liu
2012-03-11 17:48 ` [RFC PATCH 5/5] PCI: Replace old pci bus searching function calls with hotplug safe ones Jiang Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).