Skip to content

Commit

Permalink
drm/i915: Markup potential lock for i915_active
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Wilson committed Jul 3, 2019
1 parent c03467b commit d650d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/i915_active.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d650d1f

Please sign in to comment.