]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/eeh: Use global PCI rescan-remove locking
authorRafael J. Wysocki <rjw@rjwysocki.net>
Wed, 15 Jan 2014 13:33:20 +0000 (14:33 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jan 2014 17:31:29 +0000 (10:31 -0700)
commit1c2042c83aa7af10579b71a1fe5e22bbae69f08c
treedaba13b2d79d608c8d3cf28ca183eb0cc879c8d3
parent64cdb4181d87900c6560f8c72d02c7ccf75c9070
powerpc/eeh: Use global PCI rescan-remove locking

Race conditions are theoretically possible between the PCI device addition
and removal in the PPC64 PCI error recovery driver and the generic PCI bus
rescan and device removal that can be triggered via sysfs.

To avoid those race conditions make PPC64 PCI error recovery driver use
global PCI rescan-remove locking around PCI device addition and removal.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/powerpc/kernel/eeh_driver.c