]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only the zap the VMA after updating the tiling parameters
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Apr 2012 15:23:24 +0000 (16:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:07 +0000 (11:18 +0200)
commit39f4f158293e28f73383579091ca2324aa2e7f40
tree632943f4381d72d4165f7abf9046842effb3535f
parenta60e790dd7f2237153f38fae25a42c3290fa88be
drm/i915: Only the zap the VMA after updating the tiling parameters

If we fail to unbind and so abort the change in tiling, we will have
removed the VMA for the object for no reason. The likelihood of unbind
failing is slim (other than ERESTARTSYS which will cause userspace to
try again), so the change is mostly for the principle.

Also improve the slightly stale comment.

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_tiling.c