diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2026-01-25 17:07:52 +0100 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-02-03 08:21:25 -0800 |
| commit | 6fd390e2bccfd82e6e2932acb21299938f8981bb (patch) | |
| tree | b306f5fa76a8f981b319b8e3baa7241b6a00d698 | |
| parent | 05f8f36d0b836006a1f7a7d233789c8c80ea89df (diff) | |
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>
| -rw-r--r-- | drivers/infiniband/core/umem_odp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/umem_odp.c b/drivers/infiniband/core/umem_odp.c index 572a91a62a7b..32267258a19c 100644 --- a/drivers/infiniband/core/umem_odp.c +++ b/drivers/infiniband/core/umem_odp.c @@ -149,7 +149,7 @@ struct ib_umem_odp *ib_umem_odp_alloc_implicit(struct ib_device *device, umem->owning_mm = current->mm; umem_odp->page_shift = PAGE_SHIFT; - umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); + umem_odp->tgid = get_task_pid(current, PIDTYPE_TGID); ib_init_umem_implicit_odp(umem_odp); return umem_odp; } @@ -258,7 +258,7 @@ struct ib_umem_odp *ib_umem_odp_get(struct ib_device *device, umem_odp->page_shift = HPAGE_SHIFT; #endif - umem_odp->tgid = get_task_pid(current->group_leader, PIDTYPE_PID); + umem_odp->tgid = get_task_pid(current, PIDTYPE_TGID); ret = ib_init_umem_odp(umem_odp, ops); if (ret) goto err_put_pid; |
