]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Insert cond_resched() into i915_gem_free_objects
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 10:25:52 +0000 (11:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 12:37:41 +0000 (13:37 +0100)
commitf2be9d68334dbb4ab8a3aa40b1633e3f408c616b
treed32f63e29806f1e89a25888654da4f96419176c0
parent5ad08be7e34fc6f3c6936ac40063ea839d4ce0d2
drm/i915: Insert cond_resched() into i915_gem_free_objects

As we may have very many objects to free, check to see if the task needs
to be rescheduled whilst freeing them.

Suggested-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170407102552.5781-4-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c