Displaying 1 result from an estimated 1 matches for "6116e3b".
Did you mean:
611693
2012 Apr 22
1
[PATCH 1/5] drm: add optional per device rwsem for all ioctls
...Marcin Slusarz <marcin.slusarz at gmail.com>
---
drivers/gpu/drm/drm_drv.c | 6 ++++++
drivers/gpu/drm/drm_stub.c | 2 ++
include/drm/drmP.h | 4 ++++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 6116e3b..c54e9f8 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -464,6 +464,9 @@ long drm_ioctl(struct file *filp,
} else
memset(kdata, 0, usize);
+ if (dev->driver->ioctls_need_rwsem)
+ down_read(&dev->ioctls_rwsem);
+
if (ioctl->flags & DRM_UN...