vfio/type1: Add conditional rescheduling after iommu map failed
authorXiang Zheng <zhengxiang9@huawei.com>
Mon, 27 Jul 2020 19:43:37 +0000 (13:43 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 27 Jul 2020 19:43:37 +0000 (13:43 -0600)
commite1907d6752a26ccfcda1573b5a7542b056553046
tree12970757490d86870bc444c1300551dd912cfc98
parentbf3551e150e5a231ac60f2bd750f63ab5484010a
vfio/type1: Add conditional rescheduling after iommu map failed

Commit c5e6688752c2 ("vfio/type1: Add conditional rescheduling")
missed a "cond_resched()" in vfio_iommu_map if iommu map failed.

This is a very tiny optimization and the case can hardly happen.

Signed-off-by: Xiang Zheng <zhengxiang9@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c