]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Decouple the object from the unbound list before freeing pages
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Dec 2012 11:49:00 +0000 (11:49 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Dec 2012 16:22:16 +0000 (17:22 +0100)
commit27d93d48d7e521c764fee3f994af7a7e1f550716
tree204f81ca8c75aeaadc6c425959ad96247a56958a
parent5253aba35e81a3ea4b141ba6d3b085dee51ddde1
drm/i915: Decouple the object from the unbound list before freeing pages

As we may actually allocate in order to save the physical swizzling bits
during the free, we have to be careful not to trigger the shrinker on
the same object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Added a small comment in the code to really drive the
scariness of this patch home.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c