mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
e3461a2bc0
commit
ab699ec64a
1 changed files with 2 additions and 0 deletions
|
@ -337,7 +337,9 @@ retry:
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutex_unlock(&drm_global_mutex);
|
||||||
ret = ttm_bo_wait_cpu(&nvbo->bo, false);
|
ret = ttm_bo_wait_cpu(&nvbo->bo, false);
|
||||||
|
mutex_lock(&drm_global_mutex);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
NV_ERROR(dev, "fail wait_cpu\n");
|
NV_ERROR(dev, "fail wait_cpu\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue