Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp678336lqs; Fri, 14 Jun 2024 02:16:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWM6vtl3MR/Dr/lOcWoUL+SM1NnjL/Nsc2NN0P7YYNjFULSA9hACAYYW2Brs29+iw8dRYogxB7w3JPn0XBZlht36Cevdl84u2I2vtKG8A== X-Google-Smtp-Source: AGHT+IGZ+ZWEqh5Z+ANHZbZRrc7iHkSZNpME8qXYEy0BOyM6e2NhpMkBisq0ay4O/BUaOiUAA418 X-Received: by 2002:a05:6870:2189:b0:254:b6f2:de84 with SMTP id 586e51a60fabf-25842b0a98dmr2163818fac.41.1718356614410; Fri, 14 Jun 2024 02:16:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718356614; cv=pass; d=google.com; s=arc-20160816; b=NQ1kN7PUUewlT0LDHBegkRrUxg/Haw5gYYeiF8qRsfwkk/DQ99uLK5GI/2RfMe9mh9 /VHc1lnWDNV8c40RZRrdGd6GHwS6YRy90DoxxuWOiUYmVAUuDAcS5P5z7IY1B059G+a2 tF3yVwv+eRVvO4VEBeKNzTyOVd0QLGMToLna78MZMTks+wxRrvTiMGD33ZW66WC+7mQn nTAuB1ycz6SP95ARmxW82JDoXc4NIXrdW3exSi2JIpNzSi5w0OW8eiu7QKOEz35gT/2V iyaDVTiovp17lklTVajzdkfkAZ0y7YrATmLdgSZclP2JOZv45CVuiFYDMc3I+oOGmlqO SzNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sWoHRrUFCQ/3Kms4hbrtfkQA4KvcKWG2ZiM7gJlWnP0=; fh=s7ipnC9FjOsCO0vnhvfZv3u9AxLQHAM1l8QXM8ZwEN4=; b=lqSAEcHGesSbXgz08VAlDevHka/UYTEA5MGe7rtqPsP0vUXnOEMX2e115gUuAnO6et 8Ud1nW6NFy5tlskM5Gazzfibpgno84EvC/2hk4/Mz2iU0a6Wpl4k2Hh/knnfaqJmy2kw nQU6KfSq0lw2fYiOPZvp8y4B5R+IjCjkPXM5VLmr0zSBOKBn20KELsxLjP4RJCvbvRH+ GxDDCLRJv5u97qSG32oTgfgW+wuvprIThU0cjPr4N70NTs4wCf9OPKQ/2K8ydk99KntF yzQYE6aJMpG2A5Y4mKB27ktNdWNjR5YAenik4AkEo/5xNZYkEIHKab+IQ2keXigasQ1W cUBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rwppda1a; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee4167aa1si3521224a12.498.2024.06.14.02.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rwppda1a; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5680FB24786 for ; Fri, 14 Jun 2024 09:12:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7179C1922C7; Fri, 14 Jun 2024 09:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Rwppda1a" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C2B75FBB7 for ; Fri, 14 Jun 2024 09:11:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356311; cv=none; b=dtGz8aPXtveMe5v0IKJNjTvsQ7/mS5AhP0Ag2Q69Zb/84Doy/2svEIdoiiPJKgnmiLalRNNgGCSumpKlLdtCDdOkK78EsGZgbzJ6I0u0UEWo1GzvHuvD264i4yqUGz5+eZwJb3Qm6XmcgCyUC2UDHrmT3ow8UaWhtwtrkg7rfhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356311; c=relaxed/simple; bh=PyT3i07hVZXSmRuKgMLGdo4Bxyuj19MmGk+2thL7vGY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mmNuld6Be9w7jp42XN5Rrc3jvEMr5JJfagRJo1ywiAnnaljHf+aj7/wBGv+cX8UwrCTTmYrrptt66m6RDANTP0bJ1NyneDXdD9dXYmPp4EiaVN3MQbuN0q3EIQ/RZTlhbGpPAGTskiTRPVdcCF7nXeQoWNVyul7fSp+stzIkJ9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rwppda1a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A871FC2BD10; Fri, 14 Jun 2024 09:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718356311; bh=PyT3i07hVZXSmRuKgMLGdo4Bxyuj19MmGk+2thL7vGY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rwppda1aLZIXLJs35olcYIjwj21f86cZkWa0/kRQDTpATfF0PJe7bRDMEcX6YR2Nw f9cL5q91QzF+mzmHXZzOOXM6athaJGWHjomZTNJ4aHwEESckpwJK+WNQ5C3gX3G6V3 IEgvvlGHYVsLuj0MZF+QEIAcweiHuinDi301fQyE= Date: Fri, 14 Jun 2024 11:11:48 +0200 From: Greg Kroah-Hartman To: Markus Elfring Cc: Carlos Llamas , kernel-team@android.com, Alice Ryhl , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Christian Brauner , Joel Fernandes , Martijn Coenen , Suren Baghdasaryan , Todd Kjos , LKML , Christophe Jaillet , John Stultz , Nick Chen , Steven Moreland , Tim Murray Subject: Re: [PATCH v5] binder: use bitmap for faster descriptor lookup Message-ID: <2024061443-breeding-obvious-908d@gregkh> References: <20240612042535.1556708-1-cmllamas@google.com> <7daafcb7-2c80-4c2a-bf25-7202634f79f0@web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7daafcb7-2c80-4c2a-bf25-7202634f79f0@web.de> On Thu, Jun 13, 2024 at 06:50:53PM +0200, Markus Elfring wrote: > … > > +++ b/drivers/android/binder.c > … > > +static void try_shrink_dmap(struct binder_proc *proc) > > +{ > … > > + binder_proc_lock(proc); > > + nbits = dbitmap_shrink_nbits(&proc->dmap); > > + binder_proc_unlock(proc); > … > > + new = bitmap_zalloc(nbits, GFP_KERNEL); > > + binder_proc_lock(proc); > > + dbitmap_shrink(&proc->dmap, new, nbits); > > + binder_proc_unlock(proc); > > +} > … > > Would you become interested to apply lock guards? > https://elixir.bootlin.com/linux/v6.10-rc3/source/include/linux/cleanup.h#L124 Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot