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 008AD606A33F for ; Thu, 3 Dec 2026 12:20:47 +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: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5BA9711286E; Thu, 3 Dec 2026 12:20:41 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id A16A011286C for ; Thu, 3 Dec 2026 12:20:35 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id BA010612B7; Thu, 3 Dec 2026 12:20:34 +0000 (UTC) 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-Archived-By: 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: 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 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.