]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip shrinking already freed pages
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Jun 2019 07:41:29 +0000 (08:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Jun 2019 17:09:08 +0000 (18:09 +0100)
commit1842ce14c3b64286d595d1ab8839a52b75be113a
tree334a2aa83aa2742e9697e25a7089a7c20d472271
parent32d8201d31f801085c895c31f71063b816f6ac5e
drm/i915: Skip shrinking already freed pages

Previously, we wanted to shrink the pages of freed objects before they
were finally RCU collected. However, by removing the struct_mutex
serialisation around the active reference, we need to acquire an extra
reference around the wait. Unfortunately this means that we have to skip
objects that are waiting RCU collection.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110937
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618074153.16055-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object.c
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c