From nobody Fri Dec 19 13:22:55 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E17DC2ED858 for ; Sun, 7 Dec 2025 12:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765111225; cv=none; b=qpb3LWcdXNV5cqSqcg15DIasZRTIDfK+nzgRVZkrL4PG7fJLpgdPgjKnPTnZ2ays8zPv4SuAkbgbglTA0zBPHc0jmjmpMYsTAHfZLeOhWZWF+seMkE1/oyP+9NpGha2iuBmeWyC1oz4EAhwdlKahiVGk+GbiRsCKqMbtCF/bjUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765111225; c=relaxed/simple; bh=vfs6N9sDwumAAjFelXXmUF2gA0S98gkOcwdpB5QXLUc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=EQ8mdbaILwgEFeEpcXMhDM/6AoF89cjNi+7J4De2KeXg7PNzaDJfkQLn/XrLxWbrVoCv4A22GPFflb60srHTaYY8gp32kTrB5LIiiIMnJSG2KJh1c7qwpGEGudJxreyDmKeblDy9RGyEVoyuZgKiPqTnlbf/JZ9fL+6yXD3qTVw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=NbDtsgoq; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="NbDtsgoq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1765111221; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=/HKvmdPqRZHJ9/v9r83b5lWZWkfSL/6IdXrUhiE9JhQ=; b=NbDtsgoqAzN9NWsfC5cJ7Sl9Ee99Bx/S/0WHS3NNpxnyEdihLtOpqrX0VtVU5WAdGa1Hc9 0sC7zJA6gzPfDZu/hCiQ1iYP5KBOkdV0WNh0oSxkZoW3uywT2TxkZrvo8W9Nbr+8mpncgO GKkmEvVOrw+XJ1jOLvXUv8oPIxlqJ8E= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-628-lKGezg7JN4ahQWbzy3fjVQ-1; Sun, 07 Dec 2025 07:40:18 -0500 X-MC-Unique: lKGezg7JN4ahQWbzy3fjVQ-1 X-Mimecast-MFC-AGG-ID: lKGezg7JN4ahQWbzy3fjVQ_1765111214 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 98FA018002EC; Sun, 7 Dec 2025 12:40:14 +0000 (UTC) Received: from fedora (unknown [10.44.32.50]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 852F6180044F; Sun, 7 Dec 2025 12:40:04 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 7 Dec 2025 13:40:16 +0100 (CET) Date: Sun, 7 Dec 2025 13:40:05 +0100 From: Oleg Nesterov To: Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Felix Kuehling , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , David Airlie , Simona Vetter , Boris Brezillon , Rob Herring , Steven Price , =?iso-8859-1?Q?Adri=E1n?= Larumbe , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Liviu Dudau , Jason Gunthorpe , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 6/7] RDMA/umem: don't abuse current->group_leader Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cleanup and preparation to simplify the next changes. Use current->tgid instead of current->group_leader->pid. Signed-off-by: Oleg Nesterov --- drivers/infiniband/core/umem_odp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/core/umem_odp.c b/drivers/infiniband/core/u= mem_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 i= b_device *device, umem->owning_mm =3D current->mm; umem_odp->page_shift =3D PAGE_SHIFT; =20 - umem_odp->tgid =3D get_task_pid(current->group_leader, PIDTYPE_PID); + umem_odp->tgid =3D 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 *d= evice, umem_odp->page_shift =3D HPAGE_SHIFT; #endif =20 - umem_odp->tgid =3D get_task_pid(current->group_leader, PIDTYPE_PID); + umem_odp->tgid =3D get_task_pid(current, PIDTYPE_TGID); ret =3D ib_init_umem_odp(umem_odp, ops); if (ret) goto err_put_pid; --=20 2.52.0