]> 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)
commit18ff0985c8c943dad0ad0604e45526a4f6c24bbb
tree57444658015505cb7cb8596d0e3e8d607cc076e7
parentadb1eb27ef94782af8b9ff9f8070591df5c50024
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