drm/i915: Pin backing pages for pread
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Sep 2012 20:02:56 +0000 (21:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 Sep 2012 12:22:57 +0000 (14:22 +0200)
commitf60d7f0c1d55a935475ab394955cafddefaa6533
tree016122c1b20e51d32ddc2916c84a7a4a719e58bc
parent755d22184f1e5015b040acee794542d9cf8a16c5
drm/i915: Pin backing pages for pread

By using the recently introduced pinning of pages, we can safely drop
the mutex in the knowledge that the pages are not going to disappear
beneath us, and so we can simplify the code for iterating over the pages.

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