mbox series

[0/3] EEH fixes 4

Message ID cover.1564727543.git.sbobroff@linux.ibm.com (mailing list archive)
Headers show
Series EEH fixes 4 | expand

Message

Sam Bobroff Aug. 2, 2019, 6:32 a.m. UTC
Hello Everyone,

Here are three small fixes to the upper level EEH code: two small cleanups
and a fix for a crash when PCI device removal races with EEH recovery.

(They are based on my last (unnamed) set of EEH fixes, which are not yet
upstream, but they should apply fairly easily without them if necessary.)

For the crash fix, I did consider holding the pci_rescan_remove lock for the
whole recovery phase but I was afraid that a driver may block for a long time
(I've seen five minutes) or even crash and leave the lock held forever.

Cheers,
Sam.

Sam Bobroff (3):
  powerpc/eeh: Slightly simplify eeh_add_to_parent_pe()
  powerpc/eeh: Remove unused return path from eeh_pe_dev_traverse()
  powerpc/eeh: Fix crash when edev->pdev changes

 arch/powerpc/include/asm/eeh.h   |  6 +--
 arch/powerpc/kernel/eeh.c        | 16 +++----
 arch/powerpc/kernel/eeh_driver.c | 70 ++++++++++++++++-------------
 arch/powerpc/kernel/eeh_pe.c     | 77 ++++++++++++++------------------
 4 files changed, 82 insertions(+), 87 deletions(-)