[PATCH] drm/tegra: don't take dev->struct_mutex in mmap offset ioctl

2015-10-21 Thread Thierry Reding
On Thu, Oct 15, 2015 at 02:35:04PM +0200, Daniel Vetter wrote: > 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

[PATCH] drm/tegra: don't take dev->struct_mutex in mmap offset ioctl

2015-10-15 Thread Patrik Jakobsson
On Thu, Oct 15, 2015 at 2:35 PM, Daniel Vetter wrote: > 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 st

[PATCH] drm/tegra: don't take dev->struct_mutex in mmap offset ioctl

2015-10-15 Thread Daniel Vetter
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 c