From 418b81c65c55601d4e414b351db5b8d76db8a109 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Mon, 2 Oct 2006 13:37:54 +0200 Subject: Add a comment to previos commit. --- linux-core/drm_fops.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linux-core/drm_fops.c') 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 " -- cgit v1.2.3