提交 d650d1f5 编写于 作者: C 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: NChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: NMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703091726.11690-7-chris@chris-wilson.co.uk
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册