Re: [PATCH] drm: Use global_mutex to serialise open/lastclose

2010-08-11 Thread Thomas Hellstrom
On 08/08/2010 10:37 AM, Chris Wilson wrote: Dave Airlie: I might be missing something, but what stops the race with something reopening while we are in lastclose now? The global_mutex which appears to fill this role is only taken inside the drm_stub_open() and not drm_open() itself. As tha

Re: [PATCH] drm: Use global_mutex to serialise open/lastclose

2010-08-09 Thread Chris Wilson
On Sun, 8 Aug 2010 09:37:24 +0100, Chris Wilson wrote: > Dave Airlie: > I might be missing something, but what stops the race with something > reopening while we are in lastclose now? > > The global_mutex which appears to fill this role is only taken inside > the drm_stub_open() and not drm