Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2972547rwi; Fri, 21 Oct 2022 09:56:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ulKKb22amHlRepEDhYXqWwgsN4PWveWx3UaEtkdVzd8g3aBKrpC+bUnDFu0wOncOPWwH9 X-Received: by 2002:a50:ff13:0:b0:43e:76d3:63e1 with SMTP id a19-20020a50ff13000000b0043e76d363e1mr18252052edu.271.1666371365568; Fri, 21 Oct 2022 09:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666371365; cv=none; d=google.com; s=arc-20160816; b=YsNtZOmb2mnn7ob9/IuoTSlpJBTwCVNcHQ0qxEBcWUBKOrjNAqAi0UzMh/yqjNjIl6 rgsqKzpxVA9E+4xUdHtLz8tpT5zGyF3znHwK2D95MibgyjNtngnGPez3oz9PQOka8cnL qkgoYW0cH3LjZ6rPH9ceNcTbS5/EQGxdsllOaF+vnh9OZ8qofuMYjOZiWolXwtr0YVPx NcknqWS2+QZcUunIpqToevWBi9OVD3k3eZrIYXBnvYIlsa+hBXDk3+pJTy1mvsAL9vU3 /JCc8nHLfGIA4AZx4WdpSW3+NAkr65VQJkS4bBc5tnGe+Oa2I2Tc+LOybWaAMlDFhX3u JSvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=A8A4WdJUmtZ3pZn0W1kJeWoXW7oHHPnmlapm5XaH58o=; b=CHJd9GOt6xServQ4zRAjhvBuCISU6RXXOn4DX+6tKHl/grE7Y7+AftU15IFJ2qHUHB riy0eJyNwFSCkTiLXOJGiMJU0+LrB9EPjoCuud6MskDb2hjbOXuionswEDheixGd+Zqw vu8hdbGhiQ+ijXZg/S8uI3731XMv6jJWabZSz7BB+KsCjIYRHZ/QJaUvDPm6GM9QqNWw j4sodgnmNOiQ/bcs39UtK/I8UQHDhmKquJjRc/0LzDTt9GRJZqzaTnilojXRe/8hyU6N v51iqsttvEYa3y7kBkKng2NMzP/bxj0qGuQHc2JNJQYgMRGC7DeHe00gws3LtNmwCAg0 vEQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=QyZNlwrS; 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 w11-20020a50c44b000000b0045903f0af9dsi20122236edf.111.2022.10.21.09.55.40; Fri, 21 Oct 2022 09:56:05 -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=20210112 header.b=QyZNlwrS; 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 S231216AbiJUQjY (ORCPT + 99 others); Fri, 21 Oct 2022 12:39:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbiJUQiP (ORCPT ); Fri, 21 Oct 2022 12:38:15 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC1782892C7 for ; Fri, 21 Oct 2022 09:37:38 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id i16-20020a056902069000b006c3ef07d22eso3768440ybt.13 for ; Fri, 21 Oct 2022 09:37:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=A8A4WdJUmtZ3pZn0W1kJeWoXW7oHHPnmlapm5XaH58o=; b=QyZNlwrSq5mo4QWYzR3oK0EIR216wpexI9Df6hEZNyICuoeMeDmrMlBrvBhG5G9oMH eDwoSKuwVOkw2F+eA1UKjuSgQ/4G0YaIvKDgPK5/l7J3Q8CkdNBISRGJo0HwWGWEUNrf Hsg26jVqMIfXyFuiBuWIPRk3e/w2Ynh00CNLcq8RUWHyxHLWPosuj8ILf6dtKr/srDKf VgnkAvfVFAk1eD2bIu3KwtmPY4idqkPwVNcFidZU4Qvqi2ndAMirEsPVmZ++CLhMi7or QE1FxE7zy+/P5OQx3hmNlYrC8AT26Ti6pHfMan5PLEwpAZLEhxJr4VhMjlaxssiD5v+m jbDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A8A4WdJUmtZ3pZn0W1kJeWoXW7oHHPnmlapm5XaH58o=; b=j62+WE5X4X+PrlleKBIqlythGDRbdSizXhECm2SBNcDhP89+iucsL5fluS9hL5St7i gwTGXlW0wEeDY1lGhvpJhkqNbgAEGmCFNYwoxHfAveR3fFBvVj7z+nvpWovnFBKCl1oL V78pfoBW6NwtFFo777zAG+Rnayxs+UGjlGZ6hkuPHYnPWHh12s7au2XARi2/O4WB4YV9 yjwBcPjPYdipBa7KJTJIU+exDZysSeCLm0Sy+FSzakMi0261QkBCh+0fnu2evtKNzU/X DXvyPPdZKgWJKHQfnuLxH3405c/7BiHQwR3rjgEZkRU6SqaG15roOFDsGEG3zb16Pq6I /AGw== X-Gm-Message-State: ACrzQf0dNSZeiSqweeEq2AeCD2YqL/MCBtXLeLWe+UjVPA0TuWtRmnSM yw+8RQ1iHrwlEfvjBFarXc7ycpcLOZoH+GKQ X-Received: from jthoughton.c.googlers.com ([fda3:e722:ac3:cc00:14:4d90:c0a8:2a4f]) (user=jthoughton job=sendgmr) by 2002:a25:cd45:0:b0:6c2:2d8a:e3f4 with SMTP id d66-20020a25cd45000000b006c22d8ae3f4mr17406990ybf.395.1666370257496; Fri, 21 Oct 2022 09:37:37 -0700 (PDT) Date: Fri, 21 Oct 2022 16:36:39 +0000 In-Reply-To: <20221021163703.3218176-1-jthoughton@google.com> Mime-Version: 1.0 References: <20221021163703.3218176-1-jthoughton@google.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog Message-ID: <20221021163703.3218176-24-jthoughton@google.com> Subject: [RFC PATCH v2 23/47] rmap: update hugetlb lock comment for HGM From: James Houghton To: Mike Kravetz , Muchun Song , Peter Xu Cc: 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, James Houghton Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_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 The VMA lock is used to prevent high-granularity HugeTLB mappings from being collapsed while other threads are doing high-granularity page table walks. Signed-off-by: James Houghton --- mm/rmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/rmap.c b/mm/rmap.c index 19850d955aea..527463c1e936 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -47,7 +47,8 @@ * * hugetlbfs PageHuge() take locks in this order: * hugetlb_fault_mutex (hugetlbfs specific page fault mutex) - * vma_lock (hugetlb specific lock for pmd_sharing) + * vma_lock (hugetlb specific lock for pmd_sharing and high-granularity + * mapping) * mapping->i_mmap_rwsem (also used for hugetlb pmd sharing) * page->flags PG_locked (lock_page) */ -- 2.38.0.135.g90850a2211-goog