]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/spapr: Add cond_resched() for huge updates
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Mon, 2 Oct 2017 18:39:11 +0000 (12:39 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 2 Oct 2017 18:39:11 +0000 (12:39 -0600)
commite6b8c18ae669929755c8d9c38dfb37f61c924274
treec35a2f80c9b27b5ee1dfff0d834a3ee70cd262f0
parent47df64c6ea4a8b374edcfde69235709d31b58d84
vfio/spapr: Add cond_resched() for huge updates

Clearing very big IOMMU tables can trigger soft lockups. This adds
cond_resched() to allow the scheduler to do context switching when
it decides to.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_spapr_tce.c