drm/i915: Markup potential lock for i915_active

Make the lockchains more deterministic via i915_active by flagging the
potential lock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703091726.11690-7-chris@chris-wilson.co.uk
This commit is contained in:
Chris Wilson
2019-07-03 10:17:18 +01:00
parent c03467ba40
commit d650d1f5cf

View File

@@ -268,6 +268,8 @@ int i915_active_wait(struct i915_active *ref)
int err;
might_sleep();
might_lock(&ref->mutex);
if (RB_EMPTY_ROOT(&ref->tree))
return 0;