]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: disable shrinker lock stealing for create_mmap_offset
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Dec 2012 14:11:16 +0000 (15:11 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Dec 2012 13:57:35 +0000 (14:57 +0100)
commit8a76208829e83086a48313e0453617fb7f3e9443
tree57444658015505cb7cb8596d0e3e8d607cc076e7
parentac6f1ac92592d5c50d329405b7662e1feeef8f30
drm/i915: disable shrinker lock stealing for create_mmap_offset

The mmap offset structure is not part of the drm/i915 code, but
provided by gem helpers. To avoid leaky abstractions (by either
depending upon implementation details of said helper wrt to
preallocations, or reimplementing it in our code and so fuzzing
around in internal details of that helpr) simply disable
the shrinker lock stealing accross calls into the helper functions.

This should fix igt/gem_tiled_swapping.

v2: Fix cleanup path confusion bemoaned by Chris Wilson.

Reported-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c