Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp969425pxy; Fri, 30 Apr 2021 23:15:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwukcgz46s0Np16lUEarfr8iQl8hD176ZJtf8x4Bit279VCj+X/eZC2o/yzN+qpq9uOs8K X-Received: by 2002:a05:6402:2691:: with SMTP id w17mr9573893edd.81.1619849715597; Fri, 30 Apr 2021 23:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619849715; cv=none; d=google.com; s=arc-20160816; b=dFP+yPKNC0jdulHoXwmPTMswOv4vfytMeSTXQw3omZwwdnnpp/iur30J63aivXhSZ3 IKIOnq1EFK0VanchPxIVEF0gEku6Qo+JJt2eAGMgwJqzHr61WNxzAYFL2fQzyDzxtPO6 3cw5pKULjc49Q2E4b4JM9Rnxr1RQ+49gpMUFkXRZTI9RVJu/WnkHrkiUMYdHJA3u+UAK KNk5WuXN9Kzf67I0ai3VCXzlqkyh11j945Op4cVPS4+q0GczZ0jopKcLModkqTFEEMUN 8IwWE8mFoN8OVaaSFw65lBEzPsKw0YAnO4WGRB26JOdbCeYTIv3WTFavMp+6hvY9q5uj jTmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=xPSpvQ0vttQgx8vc8QjpV7QF/EF3iUal+uGRHaKvlj0=; b=fwUinFr8bIe9vk4n9SK58B9UDEMmMahkztmDmNLwi7a5FpnCCQ0WmSpCJfvpodxV30 x/JuvwpRbjeoHUluqcWlIMFyeFKBNeqboWsuLFkTWHLMOiNepdX+aFrF9EwvK/zbCoIr Pr3os2TuX/044FmOFtmPJN7hQydo7X4UuZjud5cymeg55aA48N6NXRExYo6yp4/DN3OP XHPpwGwV7qcBmCcy60gNUXs18UdkSB4vgRnifjd5VGsJbCSAFddR6K3XlFXGdkUYHGgl xX9oK8F4hQVTf/CXGc5jGsuZLeqxPKkkH/g70DMDojS3hot0dkxfRZ38+hZzFXAIBuhc /47w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-14-rsa header.b=WeoTKebC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds10si6283594ejc.719.2021.04.30.23.14.52; Fri, 30 Apr 2021 23:15:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-14-rsa header.b=WeoTKebC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbhEAGO0 (ORCPT + 99 others); Sat, 1 May 2021 02:14:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbhEAGOZ (ORCPT ); Sat, 1 May 2021 02:14:25 -0400 Received: from server.lespinasse.org (server.lespinasse.org [IPv6:2001:470:82ab::100:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 387B0C06174A for ; Fri, 30 Apr 2021 23:13:36 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-ed; t=1619849615; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=xPSpvQ0vttQgx8vc8QjpV7QF/EF3iUal+uGRHaKvlj0=; b=jUnjHtkSxb7nb0OZ37iv4gYEshItyzYBHm0FDbN9mDJnhcmm06HsKu9mZcZ96rnLKXig5 WWSAj6zduZ8qM/CBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-14-rsa; t=1619849615; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=xPSpvQ0vttQgx8vc8QjpV7QF/EF3iUal+uGRHaKvlj0=; b=WeoTKebCC/3VeDmCMTrygVvWJTQDvus+H+s7pfqy9UhH1vWDDireyvUoYtWmbsXxsmTP/ vZa0ESgLCFh440zJozXX3aFbZYsusiwe0fq5cuY8vpf32j7Waeio7/m48knfyfFPMQxeP8a tfeKYP33OjoEBHaxBjWVJc6lAaiUrD8unRfsTyVVcp2+NOSsyY0ppkcboyhLhn7fASdFR3j HV+oPzAVlan6uidHPIk6iwo3N/wE0gI4CJZi4GIsVMB/Nqd8eZRQk5IirQX4alENP3yuL0B VKtR6Sner2DIgp/Q24MwT0+nMpsFcjM5fBLYVHV1IJgXN/4x/sPtKOJCnvAg== Received: by server.lespinasse.org (Postfix, from userid 1000) id E0F29160324; Fri, 30 Apr 2021 23:13:35 -0700 (PDT) Date: Fri, 30 Apr 2021 23:13:35 -0700 From: Michel Lespinasse To: Liam Howlett Cc: "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , Song Liu , Davidlohr Bueso , "Paul E . McKenney" , Matthew Wilcox , Laurent Dufour , David Rientjes , Axel Rasmussen , Suren Baghdasaryan , Vlastimil Babka , Rik van Riel , Peter Zijlstra , Michel Lespinasse Subject: Re: [PATCH 94/94] mm: Move mas locking outside of munmap() path. Message-ID: <20210501061335.GD5188@lespinasse.org> References: <20210428153542.2814175-1-Liam.Howlett@Oracle.com> <20210428153542.2814175-95-Liam.Howlett@Oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428153542.2814175-95-Liam.Howlett@Oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 03:36:32PM +0000, Liam Howlett wrote: > Now that there is a split variant that allows splitting to use a maple state, > move the locks to a more logical position. In this patch set, is the maple tree lock ever held outside of code sections already protected by the mmap write lock ? -- Michel "walken" Lespinasse