Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/pan*: don't abuse current->group_leader

Cleanup and preparation to simplify the next changes.

Use current->tgid instead of current->group_leader->pid.

Link: https://lkml.kernel.org/r/aXY_0MrQBZWKbbmA@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Steven Price <steven.price@arm.com>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Christan König <christian.koenig@amd.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Felix Kuehling <felix.kuehling@amd.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Oleg Nesterov and committed by
Andrew Morton
05f8f36d a87da7a9

+2 -2
+1 -1
drivers/gpu/drm/panfrost/panfrost_gem.c
··· 17 17 static void panfrost_gem_debugfs_bo_add(struct panfrost_device *pfdev, 18 18 struct panfrost_gem_object *bo) 19 19 { 20 - bo->debugfs.creator.tgid = current->group_leader->pid; 20 + bo->debugfs.creator.tgid = current->tgid; 21 21 get_task_comm(bo->debugfs.creator.process_name, current->group_leader); 22 22 23 23 mutex_lock(&pfdev->debugfs.gems_lock);
+1 -1
drivers/gpu/drm/panthor/panthor_gem.c
··· 27 27 struct panthor_device *ptdev = container_of(bo->base.base.dev, 28 28 struct panthor_device, base); 29 29 30 - bo->debugfs.creator.tgid = current->group_leader->pid; 30 + bo->debugfs.creator.tgid = current->tgid; 31 31 get_task_comm(bo->debugfs.creator.process_name, current->group_leader); 32 32 33 33 mutex_lock(&ptdev->gems.lock);