]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Guard pages being reaped by OOM whilst binding-to-GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Nov 2012 10:45:16 +0000 (10:45 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:45:04 +0000 (17:45 +0100)
commitfbdda6fb5ee5da401af42226878880069a6b8615
treeac3d3d7036c3bb386145ff4306665a1f7b88f5c5
parentbe7cb6347e0c3aa1956748a860a2465a7ea128c4
drm/i915: Guard pages being reaped by OOM whilst binding-to-GTT

In the circumstances that the shrinker is allowed to steal the mutex
in order to reap pages, we need to be careful to prevent it operating on
the current object and shooting ourselves in the foot.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c