]> Pileus Git - ~andy/linux/commit
xen/pcifront: Use global PCI rescan-remove locking
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 10 Jan 2014 14:29:19 +0000 (15:29 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2014 17:34:13 +0000 (10:34 -0700)
commita83919e0940f6eb8f77ab1d602a063f8a6703117
treedacfd74f6352ed42744ebfcaff6ff4c987919c49
parent1c2042c83aa7af10579b71a1fe5e22bbae69f08c
xen/pcifront: Use global PCI rescan-remove locking

Multiple race conditions are possible between the Xen pcifront device
addition and removal and the generic PCI device addition and removal that
can be triggered via sysfs.

To avoid those race conditions make the Xen pcifront code use global PCI
rescan-remove locking.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/xen-pcifront.c