]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/pci: improve error handling during interrupt deregistration
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sat, 10 Jun 2017 11:54:44 +0000 (13:54 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 28 Jun 2017 05:32:08 +0000 (07:32 +0200)
commit4dfbd3efe3f0cf9ff1325b87491e1b1fe07afaf1
tree61652229d4efa449d991a704f1679be377b8f12a
parent795818e8bf17dbc791764ba9fb723278ee934676
s390/pci: improve error handling during interrupt deregistration

When we ask a function to stop creating interrupts this may fail
due to the function being already gone (e.g. after hot-unplug).

Consequently we don't free associated resources like summary bits
and bit vectors used for irq processing. This could lead to
situations where we ran out of these resources and fail to setup
new interrupts.

The fix is to just ignore the errors in cases where we can be
sure no new interrupts are generated.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pci_insn.h
arch/s390/pci/pci.c
arch/s390/pci/pci_insn.c