]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: The shrinker already acquires struct_mutex, so call it unlocked
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 10:25:49 +0000 (11:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Apr 2017 11:25:11 +0000 (12:25 +0100)
commit08c06058f18f5e0c53133be05facf48982a88208
treeb3732f4fe7fb986c61db7dd2c60f361b4b835ba3
parent19ccc0dd9af5261aa5a1a9c39583b8f213a02d09
drm/i915: The shrinker already acquires struct_mutex, so call it unlocked

The shrinker is prepared to be called unlocked (and at other times with
struct_mutex held for DIRECT_RECLAIM) so we can skip acquiring the
struct_mutex prior to calling the shrinker during freeze. This improves
our ability to shrink as we can be more aggressive when we know the
caller isn't holding struct_mutex.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170407102552.5781-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c