Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1135762rwb; Wed, 16 Nov 2022 12:37:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf7s7V9TGi0FfJatO0oznzSZ6fh775/1Jt9A6pBQ0NDoA27zlSOqldTEvQuJvVf55dv0vbYL X-Received: by 2002:a65:5541:0:b0:470:1e64:f586 with SMTP id t1-20020a655541000000b004701e64f586mr21898779pgr.249.1668631058279; Wed, 16 Nov 2022 12:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668631058; cv=none; d=google.com; s=arc-20160816; b=j1fE2NItVHdD1cqVY99beE0dzkFV/6K6IKfe2+iTRQ5lfl0AKtn2SZiZeaLl392ew7 FoP80OCTxs0RnQsFh1cAFpt82JSH5tVy8TPWKb1rOZHGyijxEL6uAlxPuwBPHI2teMgV JwUWW1Rv8pioLOB5LJR5thNakONfiypffjzVy+l645swDUl3Quxl/3ZJbLeSpF3gdZTh j159bTBWZFCGU8m9uICFH6+wMB0k5j37pyUy5qyrMptHEf7xHDd6MNBR5yIYHj1Lx+ja oNQD+2EbtmoUQLNGoy/mx1niAJ08IGJAXhfhH7BJ1MM7ZDn7Zwp6Qi4laAq/XqBz4Psp BdXw== 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=lJMb3PweKDaHiAjKMFZLERnJkKA8ghZTOfHaWwXAhIc=; b=jXEhLLJt7yU8gQ6GcBBqraxWTShq8B10bPjBtaojOU7SBs5DZXo1iZVfXx6OOHTUW6 2OZsTfB9D4Fz9UT2EQ10bmKb50dsWyyjweRmlk15fAiwmCub3V317UQUlYsaQjkyJDxC 19kuYQ40Yqvi+2XIVjA6jQlOro+NdY6vHEMoGLfpLfZceup2Iwd3lZtrf/3B/Y/n2q8d MA+eLeQkRCb2/vvapQ2mTbP/RH8gChdIlwWBhl8+3MPIsRE1k4AZsyiIsRr2FsWuxD43 Nw+ic3B5sZFhXH30b35eSycTWoDxp6Hd6p+YaFrbnd/yYCC3VpfSNSkMAHqC4IU4YTTU U7Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OSyL7Z+g; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a631c43000000b0046e9da9ac40si15583410pgm.556.2022.11.16.12.37.27; Wed, 16 Nov 2022 12:37:38 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=OSyL7Z+g; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232904AbiKPUR5 (ORCPT + 90 others); Wed, 16 Nov 2022 15:17:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232243AbiKPURy (ORCPT ); Wed, 16 Nov 2022 15:17:54 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A3A453EC1 for ; Wed, 16 Nov 2022 12:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668629815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lJMb3PweKDaHiAjKMFZLERnJkKA8ghZTOfHaWwXAhIc=; b=OSyL7Z+gG/1dUjMJmNfw6SgaLQ/D/oz88Ch7/65QUKMqZ3WXaCXh5xWbOJQjLh+jFgqtzP Umw+E6DBYIbKizbSdoNaw8+lQXTICibBxAYEaB3TmqOlSH7JhcXGcuJmH0mSy3+84MByqH F6Xx3KV6sa4jFzxluJvaSXodEaGgjqY= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-192-PlUXQi9bOo6YNTKXDRtVJQ-1; Wed, 16 Nov 2022 15:16:53 -0500 X-MC-Unique: PlUXQi9bOo6YNTKXDRtVJQ-1 Received: by mail-qk1-f200.google.com with SMTP id bs7-20020a05620a470700b006fac7447b1cso18579789qkb.17 for ; Wed, 16 Nov 2022 12:16:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=lJMb3PweKDaHiAjKMFZLERnJkKA8ghZTOfHaWwXAhIc=; b=DhuQqSXZLxhB5k8Lo+cIxMaE2OdL2UAQ5Hg8+JM+AmxOzSdVmMLHIx2D+xXoY/8rl/ ad+gkY77j4bIHemI9WsTKz15DWgRoPxcL4N0xLS2rSsZ4WWxvF8P6IsWhbHKSK3kxMgT Aa8m+Ltv8oZYr1Z8Y2f/1NkscppG4LNM+AL+qyy8XO2hY89xcooL3V2cntjIMh1sr3aB miyLUH4g1Qrqj8sOQatlqymWEc6e63ybGoweq1Kg+VvvJd6uzQyGhivLcWfAsDZUdSlc idQJnB01bZ5eh7ljx7v1OXPdMoimuXWrp/hqVOXRkzptX29OF5HB7r87gNyh8gL93JIw XZWQ== X-Gm-Message-State: ANoB5pkk3skzmNTy4A4XupM0qEU1Q3dZrZS0dm/B0bNEcQMglE43kBEj 9jiYMoJb5kiKjRsIE+S0d9k6Ob1NxW/iDWuSixJkkcTVK/tf7HnuswiB9UdsItmRILwgiTMFPtZ BRfweHMq7XgAQICmWvPR11oqG X-Received: by 2002:a0c:8170:0:b0:4bb:5935:55ca with SMTP id 103-20020a0c8170000000b004bb593555camr22407692qvc.79.1668629812703; Wed, 16 Nov 2022 12:16:52 -0800 (PST) X-Received: by 2002:a0c:8170:0:b0:4bb:5935:55ca with SMTP id 103-20020a0c8170000000b004bb593555camr22407663qvc.79.1668629812374; Wed, 16 Nov 2022 12:16:52 -0800 (PST) Received: from x1n (bras-base-aurron9127w-grc-46-70-31-27-79.dsl.bell.ca. [70.31.27.79]) by smtp.gmail.com with ESMTPSA id c8-20020ac86608000000b0039d02911555sm9185919qtp.78.2022.11.16.12.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 12:16:51 -0800 (PST) Date: Wed, 16 Nov 2022 15:16:50 -0500 From: Peter Xu To: James Houghton Cc: Mike Kravetz , Muchun Song , David Hildenbrand , David Rientjes , Axel Rasmussen , Mina Almasry , Zach O'Keefe , Manish Mishra , Naoya Horiguchi , "Dr . David Alan Gilbert" , "Matthew Wilcox (Oracle)" , Vlastimil Babka , Baolin Wang , Miaohe Lin , Yang Shi , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 37/47] hugetlb: remove huge_pte_lock and huge_pte_lockptr Message-ID: References: <20221021163703.3218176-1-jthoughton@google.com> <20221021163703.3218176-38-jthoughton@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221021163703.3218176-38-jthoughton@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Fri, Oct 21, 2022 at 04:36:53PM +0000, James Houghton wrote: > They are replaced with hugetlb_pte_lock{,ptr}. All callers that haven't > already been replaced don't get called when using HGM, so we handle them > by populating hugetlb_ptes with the standard, hstate-sized huge PTEs. I didn't yet check the rational at all, but just noticed there's one more of it for ppc code: *** arch/powerpc/mm/pgtable.c: huge_ptep_set_access_flags[264] assert_spin_locked(huge_pte_lockptr(huge_page_shift(h), -- Peter Xu