]> git.baikalelectronics.ru Git - kernel.git/commit
drm: remove redundant drm_file->uid
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 1 Sep 2016 12:48:32 +0000 (14:48 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Sep 2016 09:21:42 +0000 (11:21 +0200)
commit9bf8b94cef4bbf6f6b5db7761bdd9fffcb8befa9
treed817f26904e91149331b747cad08777e48d90e54
parent76a3e6b2dac731ac384a9ef153d9af78667dc070
drm: remove redundant drm_file->uid

Each DRM file-context caches the EUID of the process that opened the file.
It is used exclusively for debugging purposes in /proc/dri/ and friends.

Note, however, that we can already fetch the EUID from
priv->pid->task->creds. The pointer-chasing will not hurt us, since it is
only about debugging, anyway.

Since we already are in an rcu-read-side, we can use __task_cred() rather
than task_cred_xxx().

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160901124837.680-2-dh.herrmann@gmail.com
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_info.c
include/drm/drmP.h