[PATCH 18/25] drm/radeon: Use rdev->gem.mutex to protect hyperz/cmask owners

2015-10-15 Thread Christian König
On 15.10.2015 09:36, Daniel Vetter wrote: > This removes the last depency of radeon for dev->struct_mutex! > > Also the locking scheme for hyperz/cmask owners seems a bit unsound, > there's no protection in the preclose handler (and that never did hold > dev->struct_mutex while being called). So gr

[PATCH 18/25] drm/radeon: Use rdev->gem.mutex to protect hyperz/cmask owners

2015-10-15 Thread Alex Deucher
On Thu, Oct 15, 2015 at 4:27 AM, Christian König wrote: > On 15.10.2015 09:36, Daniel Vetter wrote: >> >> This removes the last depency of radeon for dev->struct_mutex! >> >> Also the locking scheme for hyperz/cmask owners seems a bit unsound, >> there's no protection in the preclose handler (and

[PATCH 18/25] drm/radeon: Use rdev->gem.mutex to protect hyperz/cmask owners

2015-10-15 Thread Daniel Vetter
This removes the last depency of radeon for dev->struct_mutex! Also the locking scheme for hyperz/cmask owners seems a bit unsound, there's no protection in the preclose handler (and that never did hold dev->struct_mutex while being called). So grab the same lock there, too. There's also all the