Commit d650d1f5 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Markup potential lock for i915_active

Make the lockchains more deterministic via i915_active by flagging the
potential lock.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703091726.11690-7-chris@chris-wilson.co.uk
parent c03467ba
...@@ -268,6 +268,8 @@ int i915_active_wait(struct i915_active *ref) ...@@ -268,6 +268,8 @@ int i915_active_wait(struct i915_active *ref)
int err; int err;
might_sleep(); might_sleep();
might_lock(&ref->mutex);
if (RB_EMPTY_ROOT(&ref->tree)) if (RB_EMPTY_ROOT(&ref->tree))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment