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

2015-09-29 Thread Daniel Vetter
On Tue, Sep 29, 2015 at 09:30:49AM +0200, 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 whil

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

2015-09-29 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