]> git.karo-electronics.de Git - linux-beck.git/commit
drm: Protect authmagic with master_mutex
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 17 Jun 2016 07:33:21 +0000 (09:33 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 20 Jun 2016 20:02:09 +0000 (22:02 +0200)
commitd2b34ee62b409a03c6fe43c07b779983be51d017
tree97dd9f33e89b13b410634bca31277fe288fd8f85
parenta77316bf24f4a86482397707997ff7c951caca56
drm: Protect authmagic with master_mutex

Simplifies cleanup, and there's no reason drivers should ever care
about authmagic at all - it's all handled in the core.

And with that, Ladies and Gentlemen, it's time to pop the champagen
and celebrate: dev->struct_mutex is now officially gone from modern
drivers, and if a driver is using gem_free_object_unlocked and doesn't
do anything else silly it's positively impossible to ever touch
dev->struct_mutex at runtime, anywhere.

Well except for the mutex_init on driver load ;-)

v2: Rebased.

Cc: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466148814-8194-4-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_auth.c