drm/i915: fix up locking inconsistency around gem_do_init
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Jan 2012 10:41:11 +0000 (11:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 13 Feb 2012 10:03:45 +0000 (11:03 +0100)
commitd3ae08109d628d26615d7f7f4d8d53cdd8d71fd0
treee66b4a742d65b958f3d137a39b7cb7ecd5b9e6d9
parent99ffa1629d737295e569267cf5940758139f9ddb
drm/i915: fix up locking inconsistency around gem_do_init

The locking in our setup and teardown paths is rather arbitrary, but
generally we try to protect gem stuff with dev->struct_mutex. Further,
the ums/gem ioctl to setup gem _does_ take the look. So fix up this
benign inconsistency.

Notice while reading through code.

v2: Rebased on top of the ppgtt code.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c