Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6257914rwl; Thu, 29 Dec 2022 09:43:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvN1trIEG2e3ns9VhedmsAO0oqwX7xqub+Cm1Mky4qBSf7/o1O887nZqlQRXCDFQ24vqLps X-Received: by 2002:a17:902:ab11:b0:191:33e2:452d with SMTP id ik17-20020a170902ab1100b0019133e2452dmr27489602plb.24.1672335827861; Thu, 29 Dec 2022 09:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672335827; cv=none; d=google.com; s=arc-20160816; b=NDBtsKThtGEDNO3b1hTj4077oHJkplRgyczHnw0XlePUinmCdp/7fTokLgCsJ3duEP sZ5Jo9gpkN+O3flt2zYTsksRKVupmaEsD2Yd5oBHyRsyfRA3cstOUXhiCEBJvZQG01a6 jVqxlhimqpqrnNLZ/18VthjmlyF19yo/Rgu4gLKRWTRBMR0B60KiNvoyEcM7kkXV9z/Y wtaMta7zC9dMnTP4AiVRN3KFGeHVFT7yfhhaxKUllWDKEhqL6vX6vtb2nYjRwGs5gRDe cRw4bOH+QvbQq9T464WFikHsC8L/Fg9oHRr4Me1odit1pwYudWJ9QuLVDMWUzRqq+qdx 3FYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=v5DpOy7ouFnEUbknmfRMQOIhnBRuZ9d17t7rtM+vwqw=; b=boGhXxhKkRNPqQqNIbkroX3IqhMuIuXZlUsgKimOhsYBr29B5MJDtJQrMGdmdFhv7p XrREKBomk9I6/CBN2l/qhC3MkmxsNC2F1kM2FwMOQB99tYaXFQQ3p3DRRhDv+9QxuGA1 z5viqC6bTsD4ynrahH1W4Hq7ay/0hyPxXBm7R/sn54XRyl2zqniUQ5+1KXbWPxKJ1keC 8mL5IzIRdggEdhtfO/UxeiEy6rDEs4CFxh5C1Q2GmalFosiGgJObz8Iz5fhdF06KQNX0 WXZxa4LOszuCXXutyVkKZc8FJk3cYN4Mdy8gtYBDzE+JVN65Wcq2+XaD56CzC/eaZnJX 4ohw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=o5wtIwH+; 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 t18-20020a1709028c9200b0018731d9aabbsi18489473plo.497.2022.12.29.09.43.39; Thu, 29 Dec 2022 09:43:47 -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=@google.com header.s=20210112 header.b=o5wtIwH+; 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 S233780AbiL2RWL (ORCPT + 61 others); Thu, 29 Dec 2022 12:22:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233765AbiL2RWD (ORCPT ); Thu, 29 Dec 2022 12:22:03 -0500 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD06714007 for ; Thu, 29 Dec 2022 09:22:02 -0800 (PST) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-466c5fb1c39so256063037b3.10 for ; Thu, 29 Dec 2022 09:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=v5DpOy7ouFnEUbknmfRMQOIhnBRuZ9d17t7rtM+vwqw=; b=o5wtIwH+G8aLgU2bfLXkFDwE9eF5BishRO8jB5QxwZm4KgWWbHIOUyGexnl+ROrUZx SysBHE4RCL/sDY4s89me1RDVNDu75aOX9zSEtHqnvhkRWmg9azi94NwfhIiufLwvbYET MmryIiKJ0LylgrIoTg2k6M3S/RvTHAN7ylCWupXfp+GKhNcsJ2DcWKiET9daL3st214+ 4M+Ru5wSjLBu6OfT71RxwWlBinMmkMOQIltIyJ5KuXJi2hvWoPRKs+ItGk/cGm7L0bm3 hCK8RSJxooUJ8my4q72EKP9Jz60i6R5c71YfGW/nyNhmX9nm9/qBmBsjyidmYaqtetV4 7NHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v5DpOy7ouFnEUbknmfRMQOIhnBRuZ9d17t7rtM+vwqw=; b=0Bp7eKKbas9qeTKpqdosPep06oUqhyKS6Bdvt4uJtkCYVpLUoaTTXtM5Fgy+JXoLJQ drbudcmwIWGb5/qKUrBvpTXmUYY/qqai4w+WJCHyamPk9a3hYb0dcys4cjwEp6ISq8Jh Yu7nYznF5/smh0RFarVNku5R/VRY/j7P1jDzX5KNCj1Bg0Epmxyi4s+9TajkeSl6n95N zv09b9G8DTQ1PmFYMQFQ4qAl1GnrZY01KHaP5g/OnHBXhYJoOMReRyw/xcibmGYAIORd +aPrMC1RxaD3S3xDtQ36Miu+jOqi6zC5Od316qV/ClvkoyoS7vOjBYFZKAuaaAyECzjh OGjg== X-Gm-Message-State: AFqh2kr6xkzWjcKTFVyP7WrM9ETz76h1urBRpXmq01RScwOKmnfG8gcJ hnzmrCmNER/g4Z/tXqY6blaUzTjFYKPp4dPLbuZxro0qYo1MUg== X-Received: by 2002:a81:1149:0:b0:433:f1c0:3f1c with SMTP id 70-20020a811149000000b00433f1c03f1cmr3854983ywr.438.1672334521689; Thu, 29 Dec 2022 09:22:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Suren Baghdasaryan Date: Thu, 29 Dec 2022 09:21:50 -0800 Message-ID: Subject: Re: [QUESTION] about the maple tree and current status of mmap_lock scalability To: Lorenzo Stoakes Cc: Matthew Wilcox , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, liam.howlett@oracle.com, ldufour@linux.ibm.com, michel@lespinasse.org, vbabka@suse.cz, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Thu, Dec 29, 2022 at 9:10 AM Lorenzo Stoakes wrote: > > On Thu, Dec 29, 2022 at 04:51:37PM +0000, Matthew Wilcox wrote: > > The mmap_lock is taken for many, many things. [snip] > > I am currently describing the use of this lock (for 6.0) in the book and it is > striking just how broadly it's used. I'm diagramming it out for 'core' users, > i.e. non-driver and non-some other things, but even constraining that leaves a > HUGE number of users. I've also documented the 'unexpected' uses of the > page_table_lock, which seems to have been significantly improved over time but > still a few cases remain! > > Am happy to give you (+ anybody else on MAINTAINERS list) an early copy of the > relevant bit (once I've finished the diagrams anyway) if that'd be helpful! Yes please, that would be interesting. > > Now if you guys could stop obsoleting my work that'd be great ;)