]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/gpu/drm/nouveau/nouveau_gem.c
drm/nouveau: drop drm_global_mutex before sleeping in submission path
[net-next-2.6.git] / drivers / gpu / drm / nouveau / nouveau_gem.c
index 613f878e6d0f6a2680998d9d3136b505ddbc39fc..93711dfcafc1eec2d488ca97f6e20a1594b9e952 100644 (file)
@@ -337,7 +337,9 @@ retry:
                                return -EINVAL;
                        }
 
+                       mutex_unlock(&drm_global_mutex);
                        ret = ttm_bo_wait_cpu(&nvbo->bo, false);
+                       mutex_lock(&drm_global_mutex);
                        if (ret) {
                                NV_ERROR(dev, "fail wait_cpu\n");
                                return ret;