From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=80.241.56.152 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796055083; b=lazCI79OzxEoE8MkjyabkeiXedca0PQiDniMyaVvhdMXbny+FQ8QQ4H+Cj90arjigeHA d5B+i1TiNetC2wXGMW47ZIQv4FnT2873U3zj8V6kmq4g+0KktX0dfS/cBmKVV4OzbGhli UXzu4cG8vMWSh0GS4+CqEnK1Wj7IB6BTTWaisTKT8S59e26LiVTzPPN6MXMCl8eRaop8h /a/gg4HgL8mBB6BGQ8zMczprx3FSCBMZZpNog32mKwoFqmCQFUUA//8aBWpm+zFvzMUUA bhIpBhz64+Qc+hQtNhXq6OTNobX7W8eHoB2Sv7a8NcyH6JB5R/9peG2g9KHf+7Hk4Ug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055083; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Subject:From: Reply-To:To:Cc:Date:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:User-Agent:MIME-Version:X-MBO-RS-ID: X-MBO-RS-META; bh=W1ert315+IzEphz/8+r/FPEE1cTT5wLD3azhVyGAfcI=; b=Mp9ri6usP6CkL6yGn3414QbakqvrBTxLKx4XUn3/yTZhjgtI9c9wTnbft7/o0hNqX3tj hyqfWbtXnT0GaYBs20NGeb8SsowTmnbl+5DC4sjjoVm41srUT/x0+zyDYRg7l3LpfQJ/Q 8OBJSJ6wAtSTsjfqkqLoLa59ZFIJl2bAUhUtRnT5XCUwI1NwV06b5D8RbQJ7j1DYYcJ30 AdWWM8eUX0LjeKx2+iKNx2EOcMwz7otm7K9dd2egp59LBohCnZLfEIPY13FLjNhBHSC4Q EzXkhvNCDdcRf0Bf55wJufnASfPVEBwIFUmrnAqFy3nB9PjSdyeujec3/I2kmQ1rfTg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b="EfDtc/3I"; arc=none smtp.remote-ip=80.241.56.152 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) (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 7FC39606A320; Mon, 30 Nov 2026 16:11:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7FC39606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.a=rsa-sha256 header.s=mail20150812 header.b=EfDtc/3I Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519MLKEM768 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4jdTXb37PJzKsY7; Mon, 30 Nov 2026 17:11:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1796055071; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W1ert315+IzEphz/8+r/FPEE1cTT5wLD3azhVyGAfcI=; b=EfDtc/3IcebdoLLY+DWJ0jSsjLxzbQRJ1OxV0S3scqFlZB3Cc0vwqsf1AQkUlMJpl4W5au Noy149d7IsLi3K+RpzCc3sAFw0BO8ajQo27fThET+r3X+JR/UlNaLThBUN2+MaAv4j+Qfd mZ7DgYYhRkRNFAYylUZMopzjf4TKKzxDM7TUIFNjcytrk92dLeNnpG9aDB0HtpNr8EvrMY +e3SNIlav6X8yZ+HYTeSQmNqRPUjmlKbP4AOUWfp7y/n9EASFkSAj26eRqEfeWuUcomdwP jTgZgFKRXYfQdKHPo+IdjS1fji46uJ0t/J8SV6yw79gsRWVDyzuqg8Q6/9Q8vw== Message-ID: <53f1f00685326e496561467802c258136b1a316f.camel@mailbox.org> Subject: Re: [PATCH 0/2] rust: dma_buf: add dma-fence signalling sections From: Philipp Stanner Reply-To: phasta@kernel.org To: Danilo Krummrich , Gary Guo Cc: Daniel Almeida , Sumit Semwal , Christian =?ISO-8859-1?Q?K=F6nig?= , Philipp Stanner , Alice Ryhl , Miguel Ojeda , Boqun Feng , =?ISO-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Tamir Duberstein , Alexandre Courbot , Onur =?ISO-8859-1?Q?=D6zkan?= , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 30 Nov 2026 17:11:06 +0100 In-Reply-To: References: <20261127-dma-fence-signalling-v1-0-c44e8f4910ca@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-3.fc44) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MBO-RS-ID: 45ea03fae8a99da2b51 X-MBO-RS-META: gj33uaqwgps3ogeposyf6kquintki94u On Fri, 2026-11-27 at 21:26 +0100, Danilo Krummrich wrote: > 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 > > >=20 > > > =C2=A0=C2=A0=C2=A0 let a =3D SignallingSection::begin(); > > > =C2=A0=C2=A0=C2=A0 let b =3D SignallingSection::begin(); > > > =C2=A0=C2=A0=C2=A0 drop(a); > > > =C2=A0=C2=A0=C2=A0 drop(b); > > >=20 > > > to break nesting. A closure-based approach wouldn't have this issue. > >=20 > > I also think that a closure-based design would be better. > >=20 > > Another nit, "signaling" is much more common in the kernel than "signal= ling". >=20 > Well, while this is true, the API already inconsistent about this in exac= tly the > functions you are abstracting here, so nevermind. :) I try to go for signaling with one l in all code that I write. Maybe we can agree on that style.