Re: [Intel-gfx] [PATCH] drm: Fix getconnector connection_mutex locking

2014-06-05 Thread Rob Clark
On Thu, Jun 5, 2014 at 5:12 AM, Daniel Vetter wrote: > I've fumbled my own idea and enthusiastically wrapped all the > getconnector code with the connection_mutex. But we only need it to > chase the connector->encoder link. Even there it's not really needed > since races with userspace won't matte

[Intel-gfx] [PATCH] drm: Fix getconnector connection_mutex locking

2014-06-05 Thread Daniel Vetter
I've fumbled my own idea and enthusiastically wrapped all the getconnector code with the connection_mutex. But we only need it to chase the connector->encoder link. Even there it's not really needed since races with userspace won't matter, but better paranoid and consistent about this stuff. If we