]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit68d6bd8c5389ba18d3f03f5c5a3b8a04a21ec54f
tree016122c1b20e51d32ddc2916c84a7a4a719e58bc
parentc7949a4061b192a487974db8a67418016fcf9f66
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