OSDN Git Service

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)
commitd0aa301ae5a60cdfddac12888dc373a68985335b
treeb3732f4fe7fb986c61db7dd2c60f361b4b835ba3
parent400c19d9f85c58913956eb5ca9705c9bdd4b8fe6
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