]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop any active reference before unbinding
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Sep 2014 06:02:43 +0000 (07:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Sep 2014 12:41:15 +0000 (14:41 +0200)
commit3ff8aed5fca782a1dc359a846a64c19d86e55da4
tree56ab2f9d5d3d27fa91d151ca0a5e4ca563dd5744
parentaf23abacabbcba21b46a3bbe6ff7c66e460e5a10
drm/i915: Drop any active reference before unbinding

Before we process the final unbind on an object and move it to the
unbound list, it is semantically cleaner if there are no more active
references to the object. (An active reference would imply that it was
still being accessed by the GPU after it became inaccessible.) The
caveat is that all callsites must be prepared for the object to
disappeared during the unbind - i.e. they must hold their own reference.

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