[Intel-gfx] [PATCH 06/15] drm/i915: Keep track of drm_file in file_priv

Ben Widawsky ben at bwidawsk.net
Sat Nov 19 03:24:23 CET 2011


Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_dma.c |    1 +
 drivers/gpu/drm/i915/i915_drv.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 43131bf..697db7b 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -2201,6 +2201,7 @@ int i915_driver_open(struct drm_device *dev, struct drm_file *file)
 		return -ENOMEM;
 
 	file->driver_priv = file_priv;
+	file_priv->drm_file = file;
 
 	spin_lock_init(&file_priv->lock);
 	INIT_LIST_HEAD(&file_priv->request_list);
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index fe06613..b0ce5c8 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -917,6 +917,7 @@ struct drm_i915_gem_request {
 };
 
 struct drm_i915_file_private {
+	struct drm_file *drm_file;
 	struct spinlock lock;
 
 	struct list_head request_list;
-- 
1.7.7.3




More information about the Intel-gfx mailing list