drm/i915: Pin the object whilst faulting it in
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Nov 2012 10:45:17 +0000 (10:45 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:45:04 +0000 (17:45 +0100)
commitc9839303d186d6270f570ff3c5f56c2327958086
treec3d97e0bbf8f8bb3eba541026f2bebaffb0e2710
parentfbdda6fb5ee5da401af42226878880069a6b8615
drm/i915: Pin the object whilst faulting it in

In order to prevent reaping of the object whilst setting it up to
handle the pagefault, we need to mark it as pinned. This has the nice
side-effect of eliminating some special cases from the pagefault handler
as well!

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