OSDN Git Service

s390/pci: handle insufficient resources during dma tlb flush
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 1 Dec 2017 17:47:32 +0000 (18:47 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 13 Dec 2017 09:51:33 +0000 (10:51 +0100)
commita5f1005517534aeb1fac20180badfbf0896c183c
tree24c450680c2879193ff6d12f71411c3a479c4919
parentd39a01eff9af1045f6e30ff9db40310517c4b45f
s390/pci: handle insufficient resources during dma tlb flush

In a virtualized setup lazy flushing can lead to the hypervisor
running out of resources when lots of guest pages need to be
pinned. In this situation simply trigger a global flush to give
the hypervisor a chance to free some of these resources.

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