]> git.baikalelectronics.ru Git - kernel.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)
commit34a14b67f2106503e9ff85c0af8faee6ef67c95b
treeac3d3d7036c3bb386145ff4306665a1f7b88f5c5
parent3b335d7a2e283aa368674aebf144a8772b10c7a5
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