OSDN Git Service

drm/i915/gem: Break up long lists of object reclaim
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Feb 2020 10:09:53 +0000 (10:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Feb 2020 17:32:17 +0000 (17:32 +0000)
commitdeeee411a97559096523f97655ff16da34cf0573
tree0c242d3ed548fd44a82a26cf6af81c0fd271ae55
parent46129dc10f47c5c2b51c93a82b7b2aca46574ae0
drm/i915/gem: Break up long lists of object reclaim

Call cond_resched() between each freed object in case we have a really,
really long list, and we don't want to block normal processes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200221100953.2587176-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object.c