]> 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)
commitbe7d37466d77f64c277a07563afa61b18f9c9809
tree12970757490d86870bc444c1300551dd912cfc98
parente34aeb48e99158a0750ee00048def1aa7684b0ec
vfio/type1: Add conditional rescheduling after iommu map failed

Commit 81068f0ec5af ("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