]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/userptr: Keep spin_lock/unlock in the same block
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Jul 2014 12:28:44 +0000 (13:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Jul 2014 07:39:03 +0000 (09:39 +0200)
commit34747cdb1aab4c745354fdcafe61d6550da3b32b
treeb2c01d7ddc8a9ad5bf9b560ea962f38782b83b62
parent3a5703a3d8c794388682a96b32bb5ff845a84181
drm/i915/userptr: Keep spin_lock/unlock in the same block

Move the code around in order to acquire and release the spinlock in the
same function and in the same block. This keeps static analysers happy
and the reader sane.

Suggested-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_userptr.c