All of lore.kernel.org
 help / color / mirror / Atom feed
From: tom.zanussi@intel.com
To: bruce.ashfield@windriver.com, yocto@yoctoproject.org
Subject: [PATCH 1/1][3.2 KERNEL] bsp/emenlow: give up drm_global_mutex on contention in drm_lock()
Date: Wed, 25 Apr 2012 09:11:27 -0500	[thread overview]
Message-ID: <3ab8e8d9f0e9c2c44b6dbf8df84c0c2b03c4167c.1335362402.git.tom.zanussi@intel.com> (raw)
In-Reply-To: <cover.1335362402.git.tom.zanussi@intel.com>

From: Tom Zanussi <tom.zanussi@intel.com>

If drm_lock_take() fails, give up the global ioctl mutex and allow
other locked ioctls in the meantime.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 drivers/gpu/drm-psb/drm_lock.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm-psb/drm_lock.c b/drivers/gpu/drm-psb/drm_lock.c
index b8e4a5d..ba6630e 100644
--- a/drivers/gpu/drm-psb/drm_lock.c
+++ b/drivers/gpu/drm-psb/drm_lock.c
@@ -89,7 +89,9 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv)
 		}
 
 		/* Contention */
+		mutex_unlock(&drm_global_mutex);
 		schedule();
+		mutex_lock(&drm_global_mutex);
 		if (signal_pending(current)) {
 			ret = -ERESTARTSYS;
 			break;
-- 
1.7.0.4



  reply	other threads:[~2012-04-25 14:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-25 14:11 [PATCH 0/1][3.2 KERNEL] standard/default/emenlow update tom.zanussi
2012-04-25 14:11 ` tom.zanussi [this message]
2012-04-25 17:17 ` Bruce Ashfield
2012-04-26 20:05   ` Bruce Ashfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3ab8e8d9f0e9c2c44b6dbf8df84c0c2b03c4167c.1335362402.git.tom.zanussi@intel.com \
    --to=tom.zanussi@intel.com \
    --cc=bruce.ashfield@windriver.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.