projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12acd90
)
drm: fix regression in drm locking since BKL removal.
author
Arnd Bergmann
<
[email protected]
>
Thu, 26 Aug 2010 22:55:28 +0000
(08:55 +1000)
committer
Dave Airlie
<
[email protected]
>
Thu, 26 Aug 2010 23:10:28 +0000
(09:10 +1000)
This locking path needs proper auditing but probably too late for changes at this point for 2.6.36, so lets go with the quick fix, which is to drop the lock around schedule.
Reported-by: Andreas Schwab <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/drm_lock.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_lock.c
b/drivers/gpu/drm/drm_lock.c
index e2f70a516c34412112078131203309c3656622d7..9bf93bc9a32c27798791684ab73512a046e92a9c 100644
(file)
--- a/
drivers/gpu/drm/drm_lock.c
+++ b/
drivers/gpu/drm/drm_lock.c
@@
-92,7
+92,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 = -EINTR;
break;