summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-02 13:37:54 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-02 13:37:54 +0200
commit418b81c65c55601d4e414b351db5b8d76db8a109 (patch)
tree8c15d8a358fe9b1fb0b1f73b13e885c0b26abac0
parentc6be27401fbc12ec72bac13d07e3cc93bd63732a (diff)
Add a comment to previos commit.
-rw-r--r--linux-core/drm_fops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c
index e4385cf6..5593e55c 100644
--- a/linux-core/drm_fops.c
+++ b/linux-core/drm_fops.c
@@ -433,6 +433,13 @@ int drm_release(struct inode *inode, struct file *filp)
drm_lock_free(dev, &dev->lock.hw_lock->lock,
_DRM_LOCKING_CONTEXT(dev->lock.hw_lock->lock));
} else {
+
+ /*
+ * FIXME: This is not a good solution. We should perhaps associate the
+ * DRM lock with a process context, and check whether the current process
+ * holds the lock. Then we can run reclaim buffers locked anyway.
+ */
+
DRM_ERROR("Reclaim buffers locked deadlock.\n");
DRM_ERROR("This is probably a single thread having multiple\n");
DRM_ERROR("DRM file descriptors open either dying or "