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.

RDMA/umem: 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_2JIhCeGAYC0r@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Leon Romanovsky <leon@kernel.org>
Cc: Alice Ryhl <aliceryhl@google.com>
Cc: Boris Brezillon <boris.brezillon@collabora.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: Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>
Cc: Steven Price <steven.price@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Oleg Nesterov and committed by
Andrew Morton
6fd390e2 05f8f36d

+2 -2
+2 -2
drivers/infiniband/core/umem_odp.c
··· 149 149 umem->owning_mm = current->mm; 150 150 umem_odp->page_shift = PAGE_SHIFT; 151 151 152 - umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); 152 + umem_odp->tgid = get_task_pid(current, PIDTYPE_TGID); 153 153 ib_init_umem_implicit_odp(umem_odp); 154 154 return umem_odp; 155 155 } ··· 258 258 umem_odp->page_shift = HPAGE_SHIFT; 259 259 #endif 260 260 261 - umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); 261 + umem_odp->tgid = get_task_pid(current, PIDTYPE_TGID); 262 262 ret = ib_init_umem_odp(umem_odp, ops); 263 263 if (ret) 264 264 goto err_put_pid;