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

2012-02-09 Thread Daniel Vetter
On Thu, Feb 9, 2012 at 21:24, Eugeni Dodonov wrote: > On Thu, Feb 9, 2012 at 15:56, Jesse Barnes > 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 wh

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

2012-02-09 Thread Eugeni Dodonov
On Thu, Feb 9, 2012 at 15:56, Jesse Barnes 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: J

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

2012-02-09 Thread Daniel Vetter
On Thu, Feb 9, 2012 at 21:24, Eugeni Dodonov wrote: > On Thu, Feb 9, 2012 at 15:56, Jesse Barnes 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

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

2012-02-09 Thread Eugeni Dodonov
On Thu, Feb 9, 2012 at 15:56, Jesse Barnes 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: J

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

2012-02-09 Thread Jesse Barnes
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 --- drivers/gpu/drm/drm_sysfs.c | 75 ++

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

2012-02-09 Thread Jesse Barnes
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 --- drivers/gpu/drm/drm_sysfs.c | 75 ++