Chris Wilson 7dc4071361 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
2019-03-21 15:59:27 +00:00
..
2019-01-09 10:26:36 +02:00
2018-11-20 12:49:24 +02:00
2017-10-07 10:11:41 +01:00
2019-01-24 13:20:42 +01:00
2019-03-19 16:55:01 -07:00
2018-03-08 10:07:18 +00:00
2019-03-21 09:59:29 +00:00
2019-02-05 09:43:23 -08:00
2019-02-04 14:42:34 +10:00
2019-02-04 14:42:34 +10:00
2019-03-04 12:02:55 +10:00
2019-02-05 09:43:23 -08:00
2019-02-05 09:43:23 -08:00
2019-02-18 13:27:15 +10:00
2019-02-05 09:43:23 -08:00