drm/i915/gem: Retire directly for mmap-offset shrinking
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 13:40:05 +0000 (14:40 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 14:39:25 +0000 (15:39 +0100)
commit789ed955215d6f925008cb2381aa9f64cd635dd2
tree62aa06065d70110a6f6b65efa6f936ca896e024d
parentf33a8a51602c84cc7d5cadd2655835ba3b7d03f9
drm/i915/gem: Retire directly for mmap-offset shrinking

Now that we can retire without taking struct_mutex, we can do so to
handle shrinking the mmap-offset space after an allocation failure.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004134015.13204-11-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_mman.c