Give the scheduler a chance to breathe by calling cond_resched() as some
of the loops may take some time on slower machines, and so catch the
attention of the watchdogs.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111196
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190723095800.2820-1-chris@chris-wilson.co.uk
list_del_init(&ctx->link);
mock_context_close(ctx);
}
+
+ cond_resched();
}
end:
goto out;
}
}
+
+ cond_resched();
}
err = 0;
}
i915_vma_unpin(vma);
+
+ cond_resched();
}
}
}
i915_vma_unpin(vma);
nvma++;
+
+ cond_resched();
}
}
}
}
i915_vma_unpin_iomap(vma);
+
+ cond_resched();
}
}