diff options
| author | Tvrtko Ursulin <[email protected]> | 2023-03-14 14:18:55 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2023-03-15 13:03:00 +0000 |
| commit | 4230cea89cafb11b2c2e4dcac8b505e7a766b386 (patch) | |
| tree | e0f48d54032109d733b22c9741abc02ac97384b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/panel: seiko-43wvf1g: Add the 'enable-gpios' property (diff) | |
| download | kernel-4230cea89cafb11b2c2e4dcac8b505e7a766b386.tar.gz kernel-4230cea89cafb11b2c2e4dcac8b505e7a766b386.zip | |
drm: Track clients by tgid and not tid
Thread group id (aka pid from userspace point of view) is a more
interesting thing to show as an owner of a DRM fd, so track and show that
instead of the thread id.
In the next patch we will make the owner updated post file descriptor
handover, which will also be tgid based to avoid ping-pong when multiple
threads access the fd.
Signed-off-by: Tvrtko Ursulin <[email protected]>
Reviewed-by: Zack Rusin <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index d8e683688daa..863cb668e000 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -969,7 +969,7 @@ static int amdgpu_debugfs_gem_info_show(struct seq_file *m, void *unused) * Therefore, we need to protect this ->comm access using RCU. */ rcu_read_lock(); - task = pid_task(file->pid, PIDTYPE_PID); + task = pid_task(file->pid, PIDTYPE_TGID); seq_printf(m, "pid %8d command %s:\n", pid_nr(file->pid), task ? task->comm : "<unknown>"); rcu_read_unlock(); |
