From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74E55C88E53 for ; Tue, 15 Sep 2026 12:56:57 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4hkhqX1637z2ynZ; Tue, 15 Sep 2026 22:56:56 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1789474286; cv=none; b=NUn7qzo+2L+U4EAb6sccefyZl6pC8grLak6rx6Hgcpj6iBbGe6DQwLoWGvJV1zOKpJKcsrVIYiUeEJ73zq/lkFtXIg3Vov463Hqvs6XFT5vqjcCvBK2vKeSPSxxBezf7/iSJ45qvK1uSvL3mZQFwp/voXXnpS6Y2khFXxolqe/xKYjwNh3mSEOJIqvnP2fdac7+3UlNZiH4JqOzC561AmNS/AEnamBntCW9pssWMfP+XzFkj4J/8+7bYUOoVn7EyBbPMAfGJNVl/OXfMfODclDJ4kocS48ZZgIl/gBdGEbQCy5tVukenxwGq69L5bHf9NSBWD4XqvRw8IuF9i08WBw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1789474286; c=relaxed/relaxed; bh=pymhjA3IHUvfc7ZhMmvcj6PWvzmH+JOQJc7von1cOC0=; h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Date: Message-Id; b=Js68jwNLvPX37AQT+7GQlmFtt5qdtDfVqnG/s4VBF+aNucMsIIIvx/D95Tw479+bItKX7obyoSsfhAJnBHhubOC8f5YtOYWlgOrN6jMkVh/mQHLe99l73uP8Uxwhstga9vxyiaNouy/aJmSm5a9OPtStuAJBVh25YjcZUR13i4ChesRL1Ui3OpQGuWEBv8P3NE6ViU5uoDkjtc+FdXVUrI70cPMA8xfIxyYDkwAPNROC4xzdJofkIDfJTSHV97ItYNrJWB9VzHmna5DpO0ldLoHH9f4UqU2UWde/6VyRELnOX9u/D9xuzMxkmN1Q185Q0eDYo+w4eJ5Nsn90Lxu3fQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JM7MUu1K; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JM7MUu1K; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=sashiko-bot@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4hkgq14BrQz2y8F for ; Tue, 15 Sep 2026 22:11:25 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 7B5A9600D1; Tue, 15 Sep 2026 12:11:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62DCB1F000FF; Tue, 15 Sep 2026 12:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789474283; bh=pymhjA3IHUvfc7ZhMmvcj6PWvzmH+JOQJc7von1cOC0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JM7MUu1K3sK0BfbZuufGSUMTjcYng5dpse/wo3EWLf21O2gUgw322DSgVB01AFTtW t52UvxD3bLuUqeuFrp1OK6t6wHAM7ouPbrca6pE9eJrANghgkKMIS9n0Gf/wy0wloB LbU8P8uOHsEx8fNW9Woaznh5JHxhxpBoxXgSLs2p/Y+nXpZgm4aiuBP11/FKE+6Agh dOG9FMxrGVQ/eMMAs/LGH2WwzJPb1jSL8PT90CSvhiLFlxbJWRZR7M9jUUHoxVSb0a 49DnQM0TYsO0aM6hSLHh3aoQiYMzGZw+8DgpMeFwYhEfOeLW9W3pCge4KeYSBScMZG GXoCvsjJhnAaQ== From: sashiko-bot@kernel.org Subject: Re: [PATCH RFC POC 21/50] io_uring: commit fds per request Reply-To: sashiko-reviews@lists.linux.dev To: "Linus Torvalds" , "Christian Brauner" Cc: bpf@vger.kernel.org, "Michael S. Tsirkin" , "Jens Axboe" , linux-m68k@lists.linux-m68k.org, linux-gpio@vger.kernel.org, linux-arm-msm@vger.kernel.org, "David Airlie" , linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "Oleg Nesterov" , =?utf-8?b?Q2hyaXN0aWFuIEJyYXVuZXIgKEFtdXRh?= =?utf-8?b?YmxlKQ==?= , sparclinux@vger.kernel.org, linux-parisc@vger.kernel.org, io-uring@vger.kernel.org, "Peter Zijlstra" , linux-mm@kvack.org, "Alexander Viro" , linux-sh@vger.kernel.org, "Jann Horn" , linux-snps-arc@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-fsdevel@vger.kernel.org, linux-mips@vger.kernel.org, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, "Jan Kara" , linux-hyperv@vger.kernel.org, linux-hexagon@vger.kernel.org, "Ingo Molnar" , linux-openrisc@vger.kernel.org, "Eugenio Perez" , kexec@lists.infradead.org, linux-csky@vger.kernel.org, virtualization@lists.linux.dev In-Reply-To: <20260915-work-fd-reserve-unify-folded-v1-21-4d5217d6b246@kernel.org> References: <20260915-work-fd-reserve-unify-folded-v1-0-4d5217d6b246@kernel.org> <20260915-work-fd-reserve-unify-folded-v1-21-4d5217d6b246@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Sep 2026 12:11:20 +0000 Message-Id: <20260915121121.62DCB1F000FF@smtp.kernel.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list > io_uring requests don't complete on syscall exit of the task that > submitted them. They complete: >=20 > - inline from io_uring_enter() > - from task_work on any return to userspace > - from io-wq workers and from the SQPOLL thread >=20 > The CQEs are visible to other threads before any syscall returns. So > commit the reserved descriptors before the completion is posted. Commit > them after ->issue() based on the request's result and before every CQE > they post. >=20 > Nothing reachable from io_uring reserves yet. Once SCM_RIGHTS is > converted this keeps IORING_OP_RECVMSG working from io-wq workers and > the SQPOLL thread. >=20 > Signed-off-by: Christian Brauner (Amutable) Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260915-work-fd-re= serve-unify-folded-v1-0-4d5217d6b246@kernel.org?part=3D21