Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1393390rwr; Wed, 26 Apr 2023 14:30:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ753/vbvpHCnxOKF3x/0GaRPsRno4SHjHsZB5KRHIBjh7iKXrT6zih6o7EbmH0UqgacNtx2 X-Received: by 2002:a17:903:228c:b0:1a9:3c1d:66de with SMTP id b12-20020a170903228c00b001a93c1d66demr4695321plh.15.1682544610538; Wed, 26 Apr 2023 14:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682544610; cv=none; d=google.com; s=arc-20160816; b=oR0vDSx7HkTo/lerkt4yxgo/PW9zI4ZyLNgwKgzQ4cwJhtsjkSzu4U0mjZZxPz7VZM 8lG4q//n+y5mQUzP1IZ9b1b40zep4ReOT5VLV/oxCf0ixU7TbaD5v+I0Pn+91iKKoR7k kv3Xn0Ug5l2Yv/tXWGPLusNevOtPZUtwUNdMc+3tlxLN+rCxX5XeqMm8h65mpeebz2v2 qjsD5CNamS/LXtAJMCZpnqtekS1th4mkx/WLVcWKXRHLLC1lVgGHMGlmdlrtE/DFSkK7 rrktExrvPIcm60vrF71puooyDt/+c2cpGnrB+7RFbP4LGV9VIJ4EF5mJoD2DDhYI6L7g jU8Q== 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=+a377yCD1wSb+Qu8Ib9DWat+5hlFzs3PwSGlnB4gbjU=; b=cPpqiU90Yfr9F9Ak2MsYpceJjFDz61upMPqGrppkTfkHCujIKpxUft5b2naEM1AjT3 vOs729gxD37I9HLOXHeX8fAf7ZC/DMrEaA0DZoj7a/gZZ7SkQ6jx+YHxOz18YsVpreUC eUaa/cdBhbBJz+FMO/JWL4laYlImDc2rd6gEvI5KvJrgoXx6cHDki0wcj82kEZ4DRwEj /NC2GIPE1UCI7yhE07nzVsGhU6dxJey4MH2e3KFfTUx0J6swTJ++XRnSSK55JApBDT8N g+0+wdBGwayTbQ05lwq9ghdTWxUvBEZj5poL/sl+Ycqhr00e2OgwT1g+mhWmFT/PLNs+ tZRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ryzPabqB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170902d2ce00b001a97a9c4a34si8745105plc.299.2023.04.26.14.29.56; Wed, 26 Apr 2023 14:30:10 -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=@google.com header.s=20221208 header.b=ryzPabqB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233576AbjDZVWU (ORCPT + 99 others); Wed, 26 Apr 2023 17:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjDZVWT (ORCPT ); Wed, 26 Apr 2023 17:22:19 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0646E3A9F for ; Wed, 26 Apr 2023 14:22:18 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-64115e652eeso341689b3a.0 for ; Wed, 26 Apr 2023 14:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682544137; x=1685136137; 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=+a377yCD1wSb+Qu8Ib9DWat+5hlFzs3PwSGlnB4gbjU=; b=ryzPabqBQwhFylX0rvzXob4cLb11By20FCmqTGU3ClS2fd0qXPHCYL+CL4N18kacJV JgUNUldXU+snxKa/jqwK8PxHjS73u44KJebunfB6zuG673vnOGZfM1wd4c5HMwINDFnX 4TvkgE2GlatrMtae4CPNcEDJPHbIfsF/A1+2GCkiblTrhyAYME1Fs/wuxiyxO88L1W1M E0f+PJ4oqKYcU2qIoeq6+U2JM5FIryenp1ucY1RrRsiBxQmb1O7BR9tyo/oU1v0L9PgE vA9O5eCeISSG98ccRvLimOEo3RKr3Bpiazg+jkmHITkBFaWa9PVsli6JzjE7WVG0Mgzk hFzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682544137; x=1685136137; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+a377yCD1wSb+Qu8Ib9DWat+5hlFzs3PwSGlnB4gbjU=; b=T9gUOTeOCbObrHnDvHoFCkKm7pbdFOGtlwh6DimdPDQgAE5nsrSMUDz5H/YeVguNw7 7+Kf5VwUTLbNTRJSq8OG20ryhnBMwfuzE+2jpKBCyxHL+sUL2jGWc/3ygAJOyVZra+O2 cdx8D+XOQS9rrU+cJPd9aPfZ1TOk0kUHvTisH0ZIvae6TAGu9JlYJIZ3/q4Nfp0+5PAf f5BMKx5Sb5TRmh02Trknxi8RZ1/OvWVpARzFORHBoppyPOiRhcU0ivahWdh3J0yIkdk1 ExrFm+lwXiuQK+yxKtyJLVQt9wlTV+h2CuW+ziaggVzHSDrNbL1dDAK/N6Op35A7+FGa 1IZQ== X-Gm-Message-State: AC+VfDyoscHumshQpE95O8+6SME87U0vOBQsdgVF7/4cB+g9BG2dN0+A mZrBtnuqadzwL7aVTxRxu1NJ2Q== X-Received: by 2002:a05:6a00:99b:b0:63b:7489:f77 with SMTP id u27-20020a056a00099b00b0063b74890f77mr5206312pfg.0.1682544137258; Wed, 26 Apr 2023 14:22:17 -0700 (PDT) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id j9-20020a056a00234900b0063d3d776910sm11756164pfj.138.2023.04.26.14.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 14:22:16 -0700 (PDT) Date: Wed, 26 Apr 2023 21:22:13 +0000 From: Carlos Llamas To: Greg Kroah-Hartman 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: X-Spam-Status: No, score=-14.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,FSL_HELO_FAKE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=no 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 Tue, Apr 25, 2023 at 07:19:20AM +0200, Greg Kroah-Hartman wrote: > 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? No real reason. Just wanted to get feedback from the mm folks first. I'll go ahead and submit the v1. > > 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. Sounds good, thanks!