]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Enforce BKL-less ioctls for modern drivers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 10 Dec 2016 21:52:54 +0000 (22:52 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Dec 2016 08:37:43 +0000 (09:37 +0100)
commitb3edb0a2a43846b0b7778d018d02da40242830f2
tree276b4758aa588f0cb26c42b4011c21e82d6317f2
parent9d4f0b0e68c03a8c01e8bda66bf0e0081586a1e1
drm: Enforce BKL-less ioctls for modern drivers

With the last round of changes all ioctls called by modern drivers now
have their own locking. Everything else is only allowed for legacy
drivers and hence the lack of locking doesn't matter.

One exception is nouveau, due to the DRIVER_KMS_LEGACY_CONTEXT flag.
But that only works its magic on the context and bufs ioctls. And
drm_bufs.c is protected with dev->struct_mutex, and drm_context.c by
the same and dev->ctxlist_mutex. That should be all safe, and we can
finally mandata drm-bkl-less ioctls for everyone!

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161210215255.7765-3-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_ioctl.c