From nobody Sun Feb 8 06:05:45 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 5A641325490 for ; Sun, 25 Jan 2026 16:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769357289; cv=none; b=gJ4++yVcq0DGDtlZSgp12gEMVinWifJCgmRqh91RC0yTcLm58272L04nb+xs+f49qyMl7XtoDeRRMRoEr1nt0ixaIgyLy+4Diw/TSfddgtrjn3K5IA3Yg9NchukFItYz44dHjnbSfJSPu7L8tp/KpwaqcqTGwGbcFitvPmLAkIg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769357289; c=relaxed/simple; bh=jiQJPofl4bfqhyzl4Kn1idyR0Bjb+qV4PaGYYmOqLU0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=gzqlzgwY3JKjt9+Md7DzhZHJVdkKQFjVQ8eCov2cCU2HSQT8AMLgdaV0vpt/6YinRKKNJ5qz+Dgjoa9KSLyH+z2gtwCQbbq+QAGbUGBOBxX3Cto/fXmNKYIwLG1z1eY3KIl/APbK9W3c3kWGYZHoVaxX4expOe5M54QflNEfK7M= 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=jF84Aftu; arc=none smtp.client-ip=170.10.129.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="jF84Aftu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769357286; 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=HrD77nnUD5+g3lYcCoxySqlUnDsJXTXJVFnNYlfN8DQ=; b=jF84Aftu8wwia0tbD2eD507gDD3UGo8kvxdAtQktGPlPxcuDk/FtFm3CV4nE3G1ptLfEt+ zFHbJ8sm32F7B0KP/SLIoQPuZVEjW0JixxO8uSXPu+YkZUIBdafdNsC/cA+uxUPNcHc3t7 GI2l+JniQJdEtNykFetCnenj9HPff0Y= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-389-LWAytPJHP9aniaYx8R5iLA-1; Sun, 25 Jan 2026 11:08:01 -0500 X-MC-Unique: LWAytPJHP9aniaYx8R5iLA-1 X-Mimecast-MFC-AGG-ID: LWAytPJHP9aniaYx8R5iLA_1769357279 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id ACB5C1955D84; Sun, 25 Jan 2026 16:07:59 +0000 (UTC) Received: from fedora (unknown [10.45.224.8]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id CE9F51956053; Sun, 25 Jan 2026 16:07:53 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 25 Jan 2026 17:07:59 +0100 (CET) Date: Sun, 25 Jan 2026 17:07:52 +0100 From: Oleg Nesterov To: Andrew Morton Cc: Alice Ryhl , Boris Brezillon , Christian =?iso-8859-1?Q?K=F6nig?= , Felix Kuehling , Leon Romanovsky , Steven Price , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , 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 v2 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.0 on 10.30.177.17 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 Acked-by: Leon Romanovsky --- 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