]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Discard objects from mm global_list after being shrunk
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Nov 2016 08:48:42 +0000 (08:48 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Nov 2016 09:30:09 +0000 (09:30 +0000)
commitd099c14ed5c23f4334cc9b19773599196d0de544
treeff151ecdf6033a592ff1897fab0081793b1ac2bb
parentf1ed6cc7c392aa20551f1ce0320d297fcc3f9206
drm/i915: Discard objects from mm global_list after being shrunk

In the shrinker, we can safely remove an empty object (obj->mm.pages ==
NULL) after having discarded the pages because we are holding the
struct_mutex.

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/20161101084843.3961-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_shrinker.c