[PATCH] drm: take global drm mutex around sysfs files

Daniel Vetter daniel.vetter at ffwll.ch
Thu Feb 9 12:41:29 PST 2012


On Thu, Feb 9, 2012 at 21:24, Eugeni Dodonov <eugeni at dodonov.net> wrote:
> On Thu, Feb 9, 2012 at 15:56, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
>>
>> This prevents a race between module init and sysfs access (usually only
>> seen at module reload time, or if somehow your userspace starts fast
>> enough and pokes at /sys/class/drm while the drivers are still
>> initializing).
>>
>> Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> Reviewed-by: Eugeni Dodonov <eugeni.dodonov at intel.com>

drm_global_mutex is our own little bkl and we won't ever be fixing
this disaster by spreading the disease. So lacking better reasons for
this patch:

Nacked-by: Daniel Vetter <daniel.vetter at ffwll.ch>

Yes, I know that setup/teardown in drm core is a full-blown
middlelayer screwup ...
-- 
Daniel Vetter
daniel.vetter at ffwll.ch - +41 (0) 79 365 57 48 - http://blog.ffwll.ch


More information about the dri-devel mailing list