drm/omap: gem: Replace struct_mutex usage with omap_obj private lock
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 26 May 2018 16:54:33 +0000 (19:54 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 28 Jun 2018 10:41:05 +0000 (13:41 +0300)
commit3cbd0c587b129beaefb1405bbe43831e6bc9461e
treed31a45987312997a69db3959a37b09ac06f0952c
parentdc8c9aeee5098688c1085691213fb9a703bf20ad
drm/omap: gem: Replace struct_mutex usage with omap_obj private lock

The DRM device struct_mutex is used to protect against concurrent GEM
object operations that deal with memory allocation and pinning. All
those operations are local to a GEM object and don't need to be
serialized across different GEM objects. Replace the struct_mutex with
a local omap_obj.lock or drop it altogether where not needed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_debugfs.c
drivers/gpu/drm/omapdrm/omap_fbdev.c
drivers/gpu/drm/omapdrm/omap_gem.c