]> git.baikalelectronics.ru Git - kernel.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)
commit42698ae48e0b2b6c41b949b0d38207f0379bd64d
tree61652229d4efa449d991a704f1679be377b8f12a
parentf46c4429c110cefe72033a2dbcbea90bbac6617a
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