drm/i915: Remove superfluous locking around userfault_list
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 24 Oct 2016 12:42:16 +0000 (13:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 24 Oct 2016 12:45:36 +0000 (13:45 +0100)
commit3594a3e21f1f77d46e89195f36292a2fd0f4aa83
tree685b3f7e9206685fd05137686efd3875c41eb97f
parent9c870d03674f11b49ef4f48b04d709ffa7cf1390
drm/i915: Remove superfluous locking around userfault_list

Now that we have reduced the access to the list to either (a) under the
struct_mutex whilst holding the RPM wakeref (so that concurrent writers to
the list are serialised by struct_mutex) and (b) under the atomic
runtime suspend (which cannot run concurrently with any other accessor due
to the atomic nature of the runtime suspend) we can remove the extra
locking around the list itself.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161024124218.18252-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c