]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/shrinker: Flush active on objects before counting
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 16:23:10 +0000 (17:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jul 2016 19:42:27 +0000 (20:42 +0100)
commit09e068dae59e9941abec2878e0b6b5b8e095fb29
treeef35fb97c5c6a95152b5d0b5107025ac22edddba
parentc77f6956f76e0d354b7f515108eb193f44fa5dfd
drm/i915/shrinker: Flush active on objects before counting

As we inspect obj->active to decide how many objects we can shrink (we
only shrink idle objects), it helps to flush the active lists first
in order to have a more accurate count of available objects.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1467390209-3576-1-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_shrinker.c