Commit 171901d1 authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie

drm: Wake up all lock waiters when the master disappears.

Currently only one waiter is woken up, leaving other waiters
hanging waiting for the DRM lock.
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 4d77c88e
...@@ -420,7 +420,7 @@ int drm_rmmap_locked(struct drm_device *dev, drm_local_map_t *map) ...@@ -420,7 +420,7 @@ int drm_rmmap_locked(struct drm_device *dev, drm_local_map_t *map)
dev->sigdata.lock = NULL; dev->sigdata.lock = NULL;
master->lock.hw_lock = NULL; /* SHM removed */ master->lock.hw_lock = NULL; /* SHM removed */
master->lock.file_priv = NULL; master->lock.file_priv = NULL;
wake_up_interruptible(&master->lock.lock_queue); wake_up_interruptible_all(&master->lock.lock_queue);
} }
break; break;
case _DRM_AGP: case _DRM_AGP:
......
...@@ -151,7 +151,7 @@ static void drm_master_destroy(struct kref *kref) ...@@ -151,7 +151,7 @@ static void drm_master_destroy(struct kref *kref)
dev->sigdata.lock = NULL; dev->sigdata.lock = NULL;
master->lock.hw_lock = NULL; master->lock.hw_lock = NULL;
master->lock.file_priv = NULL; master->lock.file_priv = NULL;
wake_up_interruptible(&master->lock.lock_queue); wake_up_interruptible_all(&master->lock.lock_queue);
} }
drm_free(master, sizeof(*master), DRM_MEM_DRIVER); drm_free(master, sizeof(*master), DRM_MEM_DRIVER);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment