]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Eliminate nested get/put pages
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Oct 2010 12:45:36 +0000 (13:45 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Oct 2010 19:55:02 +0000 (20:55 +0100)
commit0ef02f7d5c4d3510e9e1c0543f74def5db88bf64
tree56ff79f83ce4d0e957d68643a37af4cbc08eba11
parent74039ada3233de5ebbf88ca83904131bf047f728
drm/i915: Eliminate nested get/put pages

By using read_cache_page() for individual pages during pwrite/pread we
can eliminate an unnecessary large allocation (and immediate free) of
obj->pages. Also this eliminates any potential nesting of get/put pages,
simplifying the code and preparing the path for greater things.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c