drm/i915: Assert no external observers when unwind a failed request alloc
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 13:17:16 +0000 (13:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Nov 2016 13:49:24 +0000 (13:49 +0000)
commit1618bdb89b5d8b47edf42d9c6ea96ecf001ad625
treedc5ee929bd7a58518a4c008ee089a280c6f4e877
parent4ffd6e0cfe1816fced8ab8d2612e1edde81aac2a
drm/i915: Assert no external observers when unwind a failed request alloc

Before we return the request back to the kmem_cache after a failed
i915_gem_request_alloc(), we should assert that it has not been added to
any global state tracking.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161125131718.20978-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c