Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2109199rwb; Wed, 30 Nov 2022 02:25:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bIsa+fT8/bJ1VIsWnW/BJVHHY8ZO9GFvquGz8WMyUQ2biqNpp2wTNgBDrwUqEc9AWcAX8 X-Received: by 2002:a05:6402:1802:b0:461:72cb:e5d with SMTP id g2-20020a056402180200b0046172cb0e5dmr46810824edy.410.1669803930885; Wed, 30 Nov 2022 02:25:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669803930; cv=none; d=google.com; s=arc-20160816; b=j555r+k4AUi1MEkBNvJiISTwaSmR9ZYC+3AS1hTMf97dW6tfEVdvw+fEDrt2FS0qne JlSdM0KYuL7vGjE9Ky8cJYXNJaALjE1nfc7CYLgwRoKU7uDJ7K1IfnABs/GcnvQB6Ca7 MgOoEFXA0c+w2EjoXrMsPl2Nq8UCrcArGKVxL0DC60c5RVNtM62kWMRkllj3I9Qfq1zX Bvu0fre7LNZOZPRw9kkK8AoshUE5J5e7QDC843mVI1a53uawM7vNsw5EHiAWN7WQJRrh DvN8kUOuvKOivIJ0caPn3zsXe4BObvOBVP9+FTClDkn+yusqkgawKTiqsU/mD5DXNfIX CP6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=PfIaBuBbISWu50WkIObdwLry5Mhmx0Lt/bXwxdM+I/4=; b=prnqhNKJ7fEiZxB3AUDk69AORqPIWkEX1YGgMI4XqLdADc7ShGVWtFGAo0jk5pVdwO h8I4GPXBGDs0k9kSG+Kc28G0cZ5ikDKLw49TKyZcuYVl/G4VuXHbNFVl/Ob6d+b9eC+v i4kHXJSjw7U0+9J/ILVLRKtdwtXekhcAjjAUd8yTUFhx5kpTRNEE8fWZ6ZSTmhP1eNf2 UfoR7ih1U/IHv3O5nGU++WcNLKvwchXsEbz/7k90I5pF3Bw4rp2QOklbW4WOdmamR91T QQtxXWoEAAa46b3+Bi+EkFSLkqypk+LRk3pDcZgqYTAmQWYzmbXAG6hiyGAz2PEzebpz Njfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=V3c3rAnB; 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 dn14-20020a05640222ee00b00465f6a9fbb3si938714edb.155.2022.11.30.02.25.10; Wed, 30 Nov 2022 02:25:30 -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=V3c3rAnB; 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 S235033AbiK3KRK (ORCPT + 85 others); Wed, 30 Nov 2022 05:17:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235924AbiK3KRC (ORCPT ); Wed, 30 Nov 2022 05:17:02 -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 5945462E8 for ; Wed, 30 Nov 2022 02:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669803362; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PfIaBuBbISWu50WkIObdwLry5Mhmx0Lt/bXwxdM+I/4=; b=V3c3rAnBkOYOf3lbOYYa9q8tPsJxToQvXM5ex2MVRRNwzwYWXMmpY0yIfeDz0Cq8plgE87 dAWxHmgZShGPX6epOorGhG9AErbydvwe3TZb3OtnqlsRR1kx4o7nUwW1WsLrRsAVFLuDmX B+S3trlr66At7f2yZGcdHe3VkPnDp3M= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-616-laCdxOyXPna17wVkqTTK1Q-1; Wed, 30 Nov 2022 05:16:00 -0500 X-MC-Unique: laCdxOyXPna17wVkqTTK1Q-1 Received: by mail-wr1-f69.google.com with SMTP id l8-20020adfc788000000b00241ef50e89eso3410571wrg.0 for ; Wed, 30 Nov 2022 02:15:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PfIaBuBbISWu50WkIObdwLry5Mhmx0Lt/bXwxdM+I/4=; b=Kzp5dE9hEyPvB4CfMsjXPWfA7f6YrGyszwnHicRQZ9pj2KqfvuLM8Ra9WcCZjrOVbF lqVqPKfXIlfu2YD6xvlhaTpjDMOtBjw+PJ8w2V1hEv1r0FegOF2eBI3QZKCDf8uVbOM+ S37ffpMicIISKgjqxaic5VdXCZAy42Lq9Rya7i2ZmGXjhXsiY4PHh8BD/QlZMVOScVEi pd7LlYIhQILe1WHASg3j6x6/AvF02v+X0Wmu59ZFjlYk4MYDx0XRZCeZxBjGanlWBjfE Awj0QkPinLenK4bjvf4d3EqzeFIjPBmojpct3osUvLoGGnn7OnFH2okea7YbHmEQEBkn sIOQ== X-Gm-Message-State: ANoB5plA8GW3a4Qr/+JdQnXV4uEbFGiGBA0hv69OQ0zgEnWbcxRuMGRw jREZekNjFKtZXh/ZOpRRT4pqcGhtlIjmM4o9kz6xLGLQKvDvr2mM4aXWUsWxJ+5Xe8k0MYyBA76 2imrgY0doFoBSy6MM/0nypuJ2 X-Received: by 2002:a5d:594b:0:b0:242:213a:7f96 with SMTP id e11-20020a5d594b000000b00242213a7f96mr4602843wri.155.1669803358823; Wed, 30 Nov 2022 02:15:58 -0800 (PST) X-Received: by 2002:a5d:594b:0:b0:242:213a:7f96 with SMTP id e11-20020a5d594b000000b00242213a7f96mr4602835wri.155.1669803358582; Wed, 30 Nov 2022 02:15:58 -0800 (PST) Received: from [192.168.3.108] (p5b0c6655.dip0.t-ipconnect.de. [91.12.102.85]) by smtp.gmail.com with ESMTPSA id u15-20020a05600c210f00b003cf7292c553sm1395364wml.13.2022.11.30.02.15.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Nov 2022 02:15:57 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2022 11:15:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 02/10] mm/hugetlb: Don't wait for migration entry during follow page Content-Language: en-US To: Peter Xu , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: James Houghton , Jann Horn , Andrew Morton , Andrea Arcangeli , Rik van Riel , Nadav Amit , Miaohe Lin , Muchun Song , Mike Kravetz References: <20221129193526.3588187-1-peterx@redhat.com> <20221129193526.3588187-3-peterx@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20221129193526.3588187-3-peterx@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 29.11.22 20:35, Peter Xu wrote: > That's what the code does with !hugetlb pages, so we should logically do > the same for hugetlb, so migration entry will also be treated as no page. > > This is probably also the last piece in follow_page code that may sleep, > the last one should be removed in cf994dd8af27 ("mm/gup: remove > FOLL_MIGRATION", 2022-11-16). We only have a handful of follow_page() calls left. Most relevant for hugetlb should only be the ones from mm/migrate.c. So this is now just consistent with ordinary pages/THP. Happy so see that gone. Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb