]> 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)
commitd05d107f80e4db6503188cd26894a85ffc3018c2
tree016122c1b20e51d32ddc2916c84a7a4a719e58bc
parentdf0229b01d7b5f24e2aaab9265f6d2838cd9543d
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