From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f46.google.com (mail-yx1-f46.google.com [74.125.224.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83AAD33A036 for ; Wed, 12 Nov 2025 15:43:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762962190; cv=none; b=quCrekHIW+Y/a1YpPOBlWtt0CjWt92S+A4ZQ8HpX3HLBp8dVCp+4q0mHv132wR0AT4Q8hsbmwVrY+8aM/AX+I854/6iSiXCGfVgx6Fescizdz3vmWkTcmQdBr6c9HRJhCGP++GaQaVsfAoKaBITw2lAfILlvMOwKI14ELWepIZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762962190; c=relaxed/simple; bh=Uik64VpUErV1SJU8h+jwWcPvCJT49s291XFBAXXxroc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DUsakjhhHTnWcMtskizilgyn5ANXR3jWpfVpcD37kqGrMlzSXscqk/YFhYXWEiDUjoz1ERkR1bGK7GnnvvG1QhWOdtUEWLb9NRrDXawy6BbQAc5MlFNuLUYo9ga7iqKNNmt/XM4OqfAFIZ7dJNOSTLRA+jEQHdg7oPye9kjcrqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I3R9gCJt; arc=none smtp.client-ip=74.125.224.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="I3R9gCJt" Received: by mail-yx1-f46.google.com with SMTP id 956f58d0204a3-63fca769163so963119d50.2 for ; Wed, 12 Nov 2025 07:43:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762962187; x=1763566987; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=9LBqzlfElQ1lIb0u+DOZLTm9WdaVuBKFQTOfsVgxO3Q=; b=I3R9gCJt4DEC/jfapMqxB/HZKE8owpZ8Ja7YFqMeRiitaEn+81yW2YEIXoCnTPN6vS 8COTkA7ksDJSOXANgzEmCWbQhI5qoj9e1XNPxWiuSzhNdDZeLU57jrnNKEA0oRXIdyeq 2fvOl65mZm3rEnZpOqN7ZVn5m7/VcnsXpRcbZz6XpehDK7zBhk8Rnhaxg3hlWjW59OJn FbVNrRYNiVcyPjUP6dUEExcJG10XktYq3YKffYbD4ySRuwehE6MQvyzNBQmhGg7r9bJF OyRFIsbfv1eisqSJCjV1JlO/pjGPGdIfyucsIK7MlG70aQJXlzZqNJFwi9s0MMgCWVYh sw0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762962187; x=1763566987; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9LBqzlfElQ1lIb0u+DOZLTm9WdaVuBKFQTOfsVgxO3Q=; b=nMu6/Bl010LJkQmGyLzyjMtS0HcRuA9rBDrdhlJpIEIi0PNwYkmPq6ztAFV1ZzBlWo IEBE6Za9g9dDvF6bA5jom/gY5a+EQ9ofha8pXMV9/VKyKzilhdHnm/gtq/ZEDGDUvWLi hPJNK7EEnDK1PFtlnYyvaXQJDV2QtfN2kQ7iWe8SL+wkxdFGYModaxEwzfw/Ls6I/dSz W6Mn3+UqdXnpU8JkjqA0x4JA0bVn0pSX0zg5BzzR/EczasGal1IxyoFgKfd1RY8UFbki zG8VXEb4id8Zh0WRlQrmaz6FvovrbpO2i+AS099JeVdt/y9ETYhjqmDgrEa+V+/xfvOH AL2A== X-Forwarded-Encrypted: i=1; AJvYcCWYSdkVPaYCJbh+E696xKthB+6UoJmoFZuPNy/ylOs+2mZJH2rquWOnhV9KSldjb+9oC79mgNvtf7+eqVlqHA==@vger.kernel.org X-Gm-Message-State: AOJu0Yw2qRGNkG7TfmKmdLQDyA22mmClzsaU0eUJkZeINFL2wPS51uMI oFznD0vs1hlF+5Pzs5HXkZB++5XKfAoFF0O8xkXbE6S/GcbIuP/EgmHO X-Gm-Gg: ASbGncv7PuyuOgYBbbIjYb7wwd0tp3G1utQQA/yNueIQffrBNDAKc4yqcfmdPIMmw4S WY9swfnitS1yp9xVDesTaPmU3x58Iw4Z2lnX+fxFm9jYflJPtI3OTbU5DPNbIXRUwYZpvmmicGC 6GTTipZcjOcRQYxPyX82G6mqLdphJkGbACFL9uONDi7mlDeF0mAzjBfDm34iCkE01gmxcE50ntT AwLaGpuBz8wnMNi9N6Clv5eXCuE+E17IoPLISi5m6n3niICqwW3gYKPLU7YcyfbJpbvGyRNLWFi gnYG7O/eAqztiCqzKLp/4+TwRnF9yfMh+8RbHpHhHKI47gvVlHUxiRmjz1bn3twTLaw/Ea5em3i cw4G01bnv/TTkP7LTlk8a/gVXmWUGfREXLzw3AlPmiG1eBFa0VUVPb/gAy+yZvKZBb5p33qq7Ca 1rorc384QpBydRPzM4TRfV3TCZ3xrdivLe X-Google-Smtp-Source: AGHT+IF15JwX9JjCA/ohr60KAYT3oXFXBvr6rVIcdeNIWwzjcYFkYA4W56ZEMkmDiPgl0IwQUnz9ag== X-Received: by 2002:a05:690c:6c90:b0:786:6b92:b1f4 with SMTP id 00721157ae682-7881362a20cmr24973067b3.15.1762962187536; Wed, 12 Nov 2025 07:43:07 -0800 (PST) Received: from localhost (c-73-105-0-253.hsd1.fl.comcast.net. [73.105.0.253]) by smtp.gmail.com with ESMTPSA id 00721157ae682-787d6a3e476sm42820047b3.59.2025.11.12.07.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Nov 2025 07:43:07 -0800 (PST) Date: Wed, 12 Nov 2025 10:43:05 -0500 From: Yury Norov To: Alice Ryhl Cc: Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan , Burak Emir , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/6] Use Rust Bitmap from Rust Binder driver Message-ID: References: <20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com> Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251112-binder-bitmap-v5-0-8b9d7c7eca82@google.com> On Wed, Nov 12, 2025 at 12:47:18PM +0000, Alice Ryhl wrote: > See commit message for rust binder commit for details. > > Signed-off-by: Alice Ryhl > --- > Changes in v5: > - Rename NO_ALLOC_MAX_LEN to MAX_INLINE_LEN. > - Update all uses of MAX_LEN/MAX_INLINE_LEN to reference the new > constants. > - Link to v4: https://lore.kernel.org/r/20251110-binder-bitmap-v4-0-5ed8a7fab1b9@google.com Patches 2 and 4 still refer to NO_ALLOC_MAX_LEN. I think you need to resend. Thanks, Yury > Changes in v4: > - Keep existing IdPool constructor (renamed to with_capacity). > - Undo docs changes that were due to the removal of the existing IdPool > constructor. > - List id < pool.map.len() as invariant for UnusedId and mention it in > as_u32() comment. > - Fix [`acquire`] docs links. > - Link to v3: https://lore.kernel.org/r/20251028-binder-bitmap-v3-0-32822d4b3207@google.com > > Changes in v3: > - Also update documentation to fix compile errors. > - Use new_inline() instead of new_small(). > - Reword commit message of "rust: id_pool: do not supply starting capacity" > - Change UnusedId::acquire() to return usize. > - Link to v2: https://lore.kernel.org/r/20251021-binder-bitmap-v2-0-e652d172c62b@google.com > > Changes in v2: > - Use id_pool. > - Link to v1: https://lore.kernel.org/r/20251020-binder-bitmap-v1-0-879bec9cddc1@google.com > > --- > Alice Ryhl (6): > rust: bitmap: add MAX_LEN and MAX_INLINE_LEN constants > rust: bitmap: add BitmapVec::new_inline() > rust: bitmap: rename IdPool::new() to with_capacity() > rust: id_pool: do not supply starting capacity > rust: id_pool: do not immediately acquire new ids > rust_binder: use bitmap for allocation of handles > > drivers/android/binder/process.rs | 63 ++++++++++++++----- > rust/kernel/bitmap.rs | 43 ++++++++----- > rust/kernel/id_pool.rs | 129 ++++++++++++++++++++++++++++---------- > 3 files changed, 171 insertions(+), 64 deletions(-) > --- > base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada > change-id: 20251007-binder-bitmap-5aa0d966fb1f > > Best regards, > -- > Alice Ryhl