Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1874976rwb; Thu, 8 Dec 2022 16:52:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf7NCpvfUJy19j4WiNPz10fJfuXAL6znwKZ9j8qwIhw6bokojXrHB+P8vX9SEIuCNO7cWGyz X-Received: by 2002:a17:906:f88d:b0:7bb:df1b:ec0 with SMTP id lg13-20020a170906f88d00b007bbdf1b0ec0mr5174157ejb.17.1670547148652; Thu, 08 Dec 2022 16:52:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670547148; cv=none; d=google.com; s=arc-20160816; b=Tq91W6lOJ7RkFWqRxJxbDRn2Bf+VrBACUOeMjahgORnU+IRduU06Gw59Krnu/j1v0R I8qINIMOHGoIRdsPSLXP3RqSzus8YS70kxbrCzk7K8s5b/pHBKNpqJaqhfaC3hq+rBNL 5DWR5Ju6HiSr16v87a8YTSRHieKk8lFicGdhVgL6Z5M7JOf6l8e9RmbKVwBlmgIQiWut LPHIGvDhjlInu991Lpy8ADAHUzJld4Y2wJXP+LEfTBFmtZOXjG1djigCJl7pBorSnrft 86TQgChmA8xh4tnlnNAFgd2m4TbiwQvYh9CLgwdCuoRaL+I8B6kRmhNsy4yhr1i24OnR 9QAQ== 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=QOQAgPN2OM3Qoh4w5J3XT6I3W+H9FIcVJ7CHfGCLLVU=; b=o7kSxJrCbCRzM6ondfjaTCXecuCEVGMkUQ277wBobFP7yWAgJ9woNmjbVk5wMEqwUe g31J32xnIQy019CeErJZY/08SzKMIX8fW9DVQDJxx8W88rA06jGnVr9tAm2h3c+4ppyW 86eq+nP8LWwakRVibo62/fOoUr5HwFdy16Tws6USDz3gJmuGC+6BL8hOIK3D/uR085Su Lk7gKhI34+LDVV2oQIAglCijXEuE9WBQ+RAKYeN594279ygMgHVFBfkqrSAvzjcfR06N msZEDZbDs1he2wLK1R25lBeN0LlDRMQfyOhikB58O/lN7lSzdv6uDqwtjgGk6rVhP1r4 lR3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BxwXqgjX; 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 gs16-20020a1709072d1000b00780af308970si6755206ejc.185.2022.12.08.16.52.10; Thu, 08 Dec 2022 16:52:28 -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=BxwXqgjX; 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 S229762AbiLIAop (ORCPT + 73 others); Thu, 8 Dec 2022 19:44:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbiLIAol (ORCPT ); Thu, 8 Dec 2022 19:44:41 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29272A0FA5 for ; Thu, 8 Dec 2022 16:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670546625; 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=QOQAgPN2OM3Qoh4w5J3XT6I3W+H9FIcVJ7CHfGCLLVU=; b=BxwXqgjXFJITcqnEkGwbKkWeZ/qtIUKXmC7L1B6C6S+6NtaAiZJc8jOD6TbBslqSrnTh7s Cs6SqengrXFeuoTA0pL4vm6knGDVwG7uVHW37mcYoPFJEyUW/99uHAiOjZVoBYEguNEW4+ e1z3Lmf5QuCPnRsIF+WBLnfE1yE8BU4= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-497-daLczFXfPUqjkuxuWPdrAg-1; Thu, 08 Dec 2022 19:43:42 -0500 X-MC-Unique: daLczFXfPUqjkuxuWPdrAg-1 Received: by mail-qk1-f199.google.com with SMTP id h8-20020a05620a284800b006b5c98f09fbso3415178qkp.21 for ; Thu, 08 Dec 2022 16:43:42 -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=QOQAgPN2OM3Qoh4w5J3XT6I3W+H9FIcVJ7CHfGCLLVU=; b=DKsYACV0+88kW6wTTJAhRsk9stAMh0ksiuVKZ8JWawpGpqA1ur5k7Y3dFVb/oWPg5v 2Bik5VZF5xr9Zcu+HDfbv+FhRXTj8vhTShQtOb+OlLmAhWR+IITWFtJqVDJoKNdOYRGo Zzn4Qd1faarkQ73FqZaZwlwNyKbt4hoDd1crCkEUXYJ+VtHLFYSWuAGh4IFeTFoW1usI 9lhnoxyofclCbJSy+3L9wRrb6mkXi2BZ7OlK/4AkdUpipDxM7ZS2txG+pwTBuqmIkrnl 22a8MOi5SURnqEx6jkoffh0+D5gHqhe+bFc1VA3fR+5KyCdtBan94i4KrPY1jqP3HB9F l6Fw== X-Gm-Message-State: ANoB5plBeHQJ9L/+V487u5lQgJOpyYmnqqiiLimNVhu/ZY8tNBoOaXJC oA1TYPpuFUs9zalW5SodAvTF8oMPtDSvdm2Z+qNC1OBp1gjjiR74bntSNoAYWWt+WcqUdFYPQVZ fAzWnUQwtvorSa22zpNe2Vecj X-Received: by 2002:a05:6214:4283:b0:4c6:99cb:347 with SMTP id og3-20020a056214428300b004c699cb0347mr6739383qvb.38.1670546621697; Thu, 08 Dec 2022 16:43:41 -0800 (PST) X-Received: by 2002:a05:6214:4283:b0:4c6:99cb:347 with SMTP id og3-20020a056214428300b004c699cb0347mr6739369qvb.38.1670546621489; Thu, 08 Dec 2022 16:43:41 -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 q23-20020a05620a2a5700b006fcc6d9a626sm13577487qkp.78.2022.12.08.16.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 16:43:40 -0800 (PST) Date: Thu, 8 Dec 2022 19:43:38 -0500 From: Peter Xu To: John Hubbard Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jann Horn , Andrea Arcangeli , James Houghton , Rik van Riel , Miaohe Lin , Nadav Amit , Mike Kravetz , David Hildenbrand , Andrew Morton , Muchun Song Subject: Re: [PATCH v2 10/10] mm/hugetlb: Document why page_vma_mapped_walk() is safe to walk Message-ID: References: <20221207203034.650899-1-peterx@redhat.com> <20221207203158.651092-1-peterx@redhat.com> <6a970de6-e3da-f57d-14fd-55f65ddcb27d@nvidia.com> <61751d01-2ba4-efc0-9cb8-eeeb3d70908d@nvidia.com> <7f3096c5-c3cc-4ead-7c5e-8bade6c930da@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7f3096c5-c3cc-4ead-7c5e-8bade6c930da@nvidia.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 Thu, Dec 08, 2022 at 04:24:19PM -0800, John Hubbard wrote: > It does! And now for the comment, I'll think you'll find that this suffices: > > /* > * All callers that get here will already hold the i_mmap_rwsem. > * Therefore, no additional locks need to be taken before > * calling hugetlb_walk(). > */ > > ...which, considering all the data above, is probably the mother of > all summaries. :) But really, it's all that people need to know here, and > it's readily understandable without wondering what KSM has to do with this, > for example. I'm okay with the change. :) I think what I'll do is I'll move part of the original one into commit message, and take the new version in the code. Thanks, -- Peter Xu