Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6509156rwr; Mon, 24 Apr 2023 22:35:14 -0700 (PDT) X-Google-Smtp-Source: AKy350bBH6OWTNOcxSwQZer214/abQBJQm0c8sdaB59jOEW0aYWKrtq9+hftX8pGL7yJLQcsuLvu X-Received: by 2002:a17:902:f38b:b0:1a8:1b63:8aec with SMTP id f11-20020a170902f38b00b001a81b638aecmr14008749ple.25.1682400914662; Mon, 24 Apr 2023 22:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682400914; cv=none; d=google.com; s=arc-20160816; b=m/Ya1jMFjSiKyc9qP/pEZKKxkPk6PTmodLDDveDQhgAtuOBz65md2NCcDp11/yIqAU 2Nxe5TlAUpTa5sHsbVYe13meWOQlKxdSrxg/QIx76b5aOPhAnOPRvKtbK5sqCm+n3k8X ON015dwoTKv95eLDH3ZcHaamM6DfkDVXl8Wy7UZauVQHA9Eauxvu2vhGaIyWquqk9jGb BhOCoqfePQEouUrgqiyE74gbPDvYKeZMtsNA1YBlK0llRMnH57P+YdrICQMFKqVogM0G /eIV80gKWYF2BThq03BJczigelZUneYtuSYUJibl+h/pGdH8cvGRumtA8AmEbleBvFpe Ruxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ce+XjesYbhaCegaPiZq7WgURZ+fQVPiWC1PIEs2vVU4=; b=Z0WPeTgnVJFoz8s636JTciiZVNLp0aRtrYB6JymGmZjmeinF7h2VNAapOkD8MZdwUR r1hbV+n+LVOekLK30oPOonYag4/hgygc0wgTgI6/FbdISCgbFS3TjwdaSCYLQe4O0Eft GsDulWAn4Tl85DrTs4oifsrv9XGvixcG6N1HCsZdmo6s8KUzWRPBYutd2J1+IKdPF6g1 0wxj9+RJbrC08jPIwvKYgigJz1obpf5JTiS4Rsj90X+xtYZRM6FbIBIMxm/jsoBdr3NM FhbhgMKdeGKhv/1MykEDfgcnd/khWDThHjLah8AgGsNWav8Z+0XC6AtxGNN1vaXN85qi Ml8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pEoRb03u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a170903125000b0019ca54b0f0fsi8451391plh.638.2023.04.24.22.35.00; Mon, 24 Apr 2023 22:35:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pEoRb03u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233105AbjDYFT0 (ORCPT + 99 others); Tue, 25 Apr 2023 01:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjDYFTZ (ORCPT ); Tue, 25 Apr 2023 01:19:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA06E1BC9 for ; Mon, 24 Apr 2023 22:19:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6593C62B61 for ; Tue, 25 Apr 2023 05:19:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34F5FC433D2; Tue, 25 Apr 2023 05:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682399963; bh=JzbtWfpHA7agQRdePHrbhbGiywJxe0fEQ297CfKr1H8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pEoRb03u6A8QPS9o7aSkRe6brpj1QYhGiX3LM7/Us1hQvAQwwvfGUFqymsX1DQItj qHBxYPC06d+ZZZnWj/adu0ALPFFs2Oehu4d/xPNzCsXxN0mMv6bCqiaGPA2D5hSlNS Wj4r3VUt8QO2evwI7R6L+2HPkRaVnovM/v4pGZNM= Date: Tue, 25 Apr 2023 07:19:20 +0200 From: Greg Kroah-Hartman To: Carlos Llamas Cc: Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan , linux-kernel@vger.kernel.org, kernel-team@android.com, Liam Howlett Subject: Re: [RFC PATCH 1/3] Revert "binder_alloc: add missing mmap_lock calls when using the VMA" Message-ID: References: <20230424205548.1935192-1-cmllamas@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230424205548.1935192-1-cmllamas@google.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 24, 2023 at 08:55:46PM +0000, Carlos Llamas wrote: > This reverts commit 44e602b4e52f70f04620bbbf4fe46ecb40170bde. > > This caused a performance regression particularly when pages are getting > reclaimed. We don't need to acquire the mmap_lock to determine when the > binder buffer has been fully initialized. A subsequent patch will bring > back the lockless approach for this. > > [cmllamas: resolved trivial conflicts with renaming of alloc->mm] > > Cc: Liam Howlett > Cc: Suren Baghdasaryan > Signed-off-by: Carlos Llamas > --- > drivers/android/binder_alloc.c | 31 ++++++++++--------------------- > 1 file changed, 10 insertions(+), 21 deletions(-) Why is this series "RFC"? What needs to be done to be able to submit it as a real patch series? Also, as the commits you are reverting are in older kernels, please properly cc: stable in the signed-off-by area, and add a fixes: tag for the commit you are reverting when you resend these as a real series. thanks, greg k-h