diff options
author | Chris Wilson | 2019-03-21 15:07:09 +0100 |
---|---|---|
committer | Chris Wilson | 2019-03-21 16:59:27 +0100 |
commit | 7dc40713618c884bf07c030d1ab1f47a9dc1f310 (patch) | |
tree | 59b6430eb22942ef6d2df9b202720fdb4d3fbb51 /drivers/gpu/drm/i915/i915_timeline.h | |
parent | drm/i915: Separate GEM context construction and registration to userspace (diff) | |
download | kernel-qcow2-linux-7dc40713618c884bf07c030d1ab1f47a9dc1f310.tar.gz kernel-qcow2-linux-7dc40713618c884bf07c030d1ab1f47a9dc1f310.tar.xz kernel-qcow2-linux-7dc40713618c884bf07c030d1ab1f47a9dc1f310.zip |
drm/i915: Introduce a mutex for file_priv->context_idr
Define a mutex for the exclusive use of interacting with the per-file
context-idr, that was previously guarded by struct_mutex. This allows us
to reduce the coverage of struct_mutex, with a view to removing the last
bits coordinating GEM context later. (In the short term, we avoid taking
struct_mutex while using the extended constructor functions, preventing
some nasty recursion.)
v2: s/context_lock/context_idr_lock/
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190321140711.11190-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_timeline.h')
0 files changed, 0 insertions, 0 deletions