drm/tegra: Don't take dev->struct_mutex in mmap offset ioctl
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Nov 2015 09:32:47 +0000 (10:32 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 14 Dec 2015 09:50:36 +0000 (10:50 +0100)
commitd849c82fac61921301cf2d6f0a3477a121a2ef2a
tree5adccbdd6a99c060a38bf1a46b1726b28966dac0
parent115333042c73958cc7c2c76cddd1dfe5b1db1b7f
drm/tegra: Don't take dev->struct_mutex in mmap offset ioctl

Since David Herrmann's mmap vma manager rework we don't need to grab
dev->struct_mutex any more to prevent races when looking up the mmap
offset. Drop it and instead don't forget to use the unref_unlocked
variant (since the drm core still cares).

v2: Finally get rid of the copypasta from another commit in this
commit message. And convert to _unlocked like we need to (Patrik).

Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Reviewed-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c