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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 86BC7C43458 for ; Fri, 3 Jul 2026 10:30:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D583B10F78B; Fri, 3 Jul 2026 10:30:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KWg6t8VP"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE4B910F792 for ; Fri, 3 Jul 2026 10:30:50 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 776EB439D1; Fri, 3 Jul 2026 10:30:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5B891F000E9; Fri, 3 Jul 2026 10:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783074650; bh=EryfTCabHyfAsgBeoZYukfHyHPumJaSiqNuKBOOvBRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=KWg6t8VPLdECJv1eJ82XCarU/FYhebJO091WlbvHZSqY2HH/98Bv6pauCwWm33NHq I81LCPtro6pgZQ9Potaw5V20CAsXSD0rWfggO/wIbn90WQUpaYyh8wru+uXmMQZjVC B7iU0Cbbzpd+7Ea9wxPw0RGJYKFcq4rQISMHoAvw= Date: Fri, 3 Jul 2026 12:31:00 +0200 From: Greg KH To: Eliot Courtney Cc: Alice Ryhl , Burak Emir , Yury Norov , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?iso-8859-1?Q?=D6zkan?= , David Airlie , Simona Vetter , John Hubbard , Alistair Popple , Timur Tabi , Zhi Wang , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 3/4] rust: id_pool: add contiguous area allocation Message-ID: <2026070334-dollar-hexagram-e49c@gregkh> References: <20260703-chid-v1-0-84fe8259e46e@nvidia.com> <20260703-chid-v1-3-84fe8259e46e@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260703-chid-v1-3-84fe8259e46e@nvidia.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Fri, Jul 03, 2026 at 07:16:06PM +0900, Eliot Courtney wrote: > Add support for contiguous area allocation. Add a new type, > `UnusedArea`, following the same pattern as `UnusedId`. > > Signed-off-by: Eliot Courtney Why isn't the built-in idr library being used here instead of rolling your own data structure? thanks, greg k-h