From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6552606A31E for ; Fri, 27 Nov 2026 20:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FO4mecrO Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F546112D9C; Fri, 27 Nov 2026 20:27:12 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1828F112D9C for ; Fri, 27 Nov 2026 20:27:02 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 40F8861CD8; Fri, 27 Nov 2026 20:27:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E68A91F00897; Fri, 27 Nov 2026 20:26:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795811220; bh=dd6KxHH+iKcHM/gA8I4KWEQmk82hPOhzgathyyn9jII=; h=Date:Subject:Cc:To:From:References:In-Reply-To; b=FO4mecrONKoUaPEmD0row/8D7V40iOYSV21mfKJp2ViiQew7pHxFy1GF2X9mnd7kg tn18OUWTVkNbE5UxP5NwX3d2CSON1z0R8PDCdmEVKdS/2tTKglY6s4Q62VLDMwxMHn 2iOh8m3KTDQ5MpSaiPNm9BWoiebGgjAsRfUTlYeitVW2rMKq7/yGQ9w9U3JbAXimes khq6sTBX8m7eyz0a6/MOyiFNp1/O7YxqyO5AtRTaDzcOLHoOAjMYFZG8dnAMZHcDBQ hb0VKJ1/PVFk4o9JU0saGvB9vMnAXOP7lnKbmIyGGn+MgBayQLcUegScF6WqpYPeHi 1K9l9DxO+YxRw== X-Archived-By: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 27 Nov 2026 21:26:55 +0100 Message-Id: Subject: Re: [PATCH 0/2] rust: dma_buf: add dma-fence signalling sections Cc: "Daniel Almeida" , "Sumit Semwal" , =?utf-8?q?Christian_K=C3=B6nig?= , "Philipp Stanner" , "Alice Ryhl" , "Miguel Ojeda" , "Boqun Feng" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Trevor Gross" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?q?Onur_=C3=96zkan?= , , , , , To: "Gary Guo" From: "Danilo Krummrich" References: <20261127-dma-fence-signalling-v1-0-c44e8f4910ca@collabora.com> In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri Nov 27, 2026 at 9:11 PM CET, Danilo Krummrich wrote: > On Fri Nov 27, 2026 at 7:59 PM CET, Gary Guo wrote: >> Do you need it being a guard? You can do things like >> >> let a =3D SignallingSection::begin(); >> let b =3D SignallingSection::begin(); >> drop(a); >> drop(b); >> >> to break nesting. A closure-based approach wouldn't have this issue. > > I also think that a closure-based design would be better. > > Another nit, "signaling" is much more common in the kernel than "signalli= ng". Well, while this is true, the API already inconsistent about this in exactl= y the functions you are abstracting here, so nevermind. :)