drm/nouveau: drop drm_global_mutex before sleeping in submission path
authorBen Skeggs <bskeggs@redhat.com>
Thu, 26 Aug 2010 05:02:32 +0000 (15:02 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 26 Aug 2010 22:39:23 +0000 (08:39 +1000)
commitab699ec64a4294f2f6ccd34b9bf8a2dcb4c4cb3c
treedd351df0c2dd1f8b0a9c2dbfa85039140dc34ab0
parente3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99
drm/nouveau: drop drm_global_mutex before sleeping in submission path

If we keep hold of the mutex here, the process which currently holds the
buffer object will never be able to release it, causing a deadlock.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c