From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796300435; b=MJWOdVrBw27lQTWUoKNAEZuf0y1zrM1xwTrC/BwUzXMbDW2hyvrZ5EPnAHZNReKn3Ct3 0mQ0TzIKShOC6OTjvWd786h+MotMMvLWmIngvkM9iZZU1T8m6I3LuWIMuTOFwghK47Ryt rEq9kcjZSe03u+ivHDBpRJEP8vBN/ghSw+vFT44Wk3+TBY1QAjV7uaNGJuAfSilutCZoz 7O/akNxmZST9MBucQqwaC8ZawElQtR6BG9TX2CDMz2LCbw4koYmAIy5E/CpQyBXq4cQEh hSF/xd3Jf+2dgVOD3FYVqvPLtga2uV9IvYF6739VVcdABsSquZIYJoHVMsHOTToFvwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796300435; h=Received:DKIM-Signature:Mime-Version:Content-Transfer-Encoding: Content-Type:Date:Message-Id:From:Subject:Cc:To:References: In-Reply-To; bh=EYhGCzszVzVJ7v6LrK0l62DaoSnENUg6F3yLKlGlY24=; b=qFoCW4MrTZIO44QquEWMrQCinDq7xhXxH/nO2j+rNxYES9QStTuldxMyfQ9n+s/do9Z9 h/bWWiBHVNuQfIHUNsp1/Cx0NgCskNM2mq4SNmNg8hNCt0XQ4qvisL3GyetYhyHeVIA7Q l2BD7OErVyl4S+u0WFKpEg7QwePA9c/wh1OBo1yZ/BUzPt1a488iF/YRAxsd3LCN2MNBl lyjlQgOZqCyu3CChxuiapvgn/bojOxMaLjQsfynjCKXJvDT8Otw9XFvuUnTkB/kj+YF3C SFZv/JvWZ7smI56jp3tmasYbARpLh8W7EyDmr55BWFrvvcDFNBVs4KlJ9XeGxDTAyag== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=onGPw4it; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00A40606A32F; Thu, 3 Dec 2026 12:20:34 +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=onGPw4it Received: by smtp.kernel.org (Postfix) with ESMTPSA id B23421F00896; Thu, 3 Dec 2026 12:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796300434; bh=EYhGCzszVzVJ7v6LrK0l62DaoSnENUg6F3yLKlGlY24=; h=Date:From:Subject:Cc:To:References:In-Reply-To; b=onGPw4itYsTBkz/0XlDs0N9/HXkAsHfAm2dIVaKFecYbPPIMAg41GTtsAInWpX123 +HKFKSEatqTTfNpEDwLnPTQR5YbU7+fgys3a9SStsFvO8eHqzsODl0sStOpNZW8+lO YbiTO90/SRw6BC2sWVWMCaT4WqLcucOh15tOkPQWz6PcysxZmhNMC6dy+LXjz+5j07 L6y7Uwf5yNjUy/pNR8BfPrlk4tLaVgSJViD5FbymLa6Ns/mMjvjai6BjHDm9Qf5s5i 6QUB0Y9tOmjtM+WRCliyxXJ/gQ/FfQL3ldBMxWB2RaCUTltyLetfpprSsC14rMXgIb bO5r4Bg2E2WVg== X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 03 Dec 2026 13:20:26 +0100 Message-Id: From: "Danilo Krummrich" Subject: Re: [PATCH v3 5/9] rust: DmaFence: Replace call_rcu() with RcuState Cc: , "Gary Guo" , "Miguel Ojeda" , "Boqun Feng" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Daniel Almeida" , "Tamir Duberstein" , "Alexandre Courbot" , =?utf-8?q?Onur_=C3=96zkan?= , "Sumit Semwal" , =?utf-8?q?Christian_K=C3=B6nig?= , "Matthew Brost" , "David Airlie" , "Simona Vetter" , "Paul E. McKenney" , "Frederic Weisbecker" , "Neeraj Upadhyay" , "Joel Fernandes" , "Josh Triplett" , "Uladzislau Rezki" , "Steven Rostedt" , "Mathieu Desnoyers" , "Lai Jiangshan" , "Zqiang" , "Lyude Paul" , "Joel Fernandes (NVIDIA)" , "Boris Brezillon" , "Yuvan Shen" , , , , To: "Philipp Stanner" References: <20261202113914.1660411-2-phasta@kernel.org> <20261202113914.1660411-7-phasta@kernel.org> In-Reply-To: On Thu Dec 3, 2026 at 11:20 AM CET, Philipp Stanner wrote: > So if I do drop_in_place(NonNull) it does not invoke NonNull's drop in > place? There is a difference between dropping the value that holds the pointer, i.= e. NonNull, and dropping the value pointed to by NonNull. The API has to distinguish between the two. NonNull itself can't drop the pointed to value in its destructor, as there = is no guarantee that the pointer is valid.