]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb96f9ce130a346207b2adb35519f529db7a638e9
tree12970757490d86870bc444c1300551dd912cfc98
parent1808c81718953f77219975d0f4208845db31a697
vfio/type1: Add conditional rescheduling after iommu map failed

Commit c30d718df493 ("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