]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49621a073f90b4c254d0270ccae1cdd2321ea86a
tree685b3f7e9206685fd05137686efd3875c41eb97f
parentfa2f3c7bd332d317b2de9ced9fb00a454f6377d7
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