[PATCH v4] drm: do not sleep on vblank while holding a mutex

2011-10-31 Thread Daniel Vetter
On Mon, Oct 31, 2011 at 05:46:18PM -0400, Ilija Hadzic wrote: > drm_wait_vblank must be DRM_UNLOCKED because otherwise it > will grab the drm_global_mutex and then go to sleep until the vblank > event it is waiting for. That can wreck havoc in the windowing system > because if one process issues th

[PATCH v4] drm: do not sleep on vblank while holding a mutex

2011-10-31 Thread Ilija Hadzic
drm_wait_vblank must be DRM_UNLOCKED because otherwise it will grab the drm_global_mutex and then go to sleep until the vblank event it is waiting for. That can wreck havoc in the windowing system because if one process issues this ioctl, it will block all other processes for the duration of all vb

Re: [PATCH v4] drm: do not sleep on vblank while holding a mutex

2011-10-31 Thread Daniel Vetter
On Mon, Oct 31, 2011 at 05:46:18PM -0400, Ilija Hadzic wrote: > drm_wait_vblank must be DRM_UNLOCKED because otherwise it > will grab the drm_global_mutex and then go to sleep until the vblank > event it is waiting for. That can wreck havoc in the windowing system > because if one process issues th

[PATCH v4] drm: do not sleep on vblank while holding a mutex

2011-10-31 Thread Ilija Hadzic
drm_wait_vblank must be DRM_UNLOCKED because otherwise it will grab the drm_global_mutex and then go to sleep until the vblank event it is waiting for. That can wreck havoc in the windowing system because if one process issues this ioctl, it will block all other processes for the duration of all vb