drm/omap: gem: Don't take struct_mutex to get GEM object mmap offset
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 25 May 2018 16:39:22 +0000 (19:39 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 28 Jun 2018 10:41:05 +0000 (13:41 +0300)
commitdc8c9aeee5098688c1085691213fb9a703bf20ad
tree233f6c722cbdd5b50fe81753921fea8e6fd5f95b
parent2491244d7709d4e35f61d75ed3f6b4ea31b0a6f3
drm/omap: gem: Don't take struct_mutex to get GEM object mmap offset

GEM objects mmap offsets are created by calling
drm_gem_create_mmap_offset_size() that doesn't need struct_mutex
protection as it includes its own locking, based on a size that is
static across the object's life time. Remove the unneeded struct_mutex
locking.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem.c