]> 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)
commitd33682f1982b135ec53a3f231bbd5af8df489b75
tree334a2aa83aa2742e9697e25a7089a7c20d472271
parent8a0b11fb233e05275c607898ebccbc599c2dbb89
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