Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2590513rwb; Wed, 30 Nov 2022 08:24:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Gs77n9IJrQzxbcc6XRiYgXdng9ECr3FU3AG4GT1wcFnmN5WhmJB7RImx6qkFx86H6bH1S X-Received: by 2002:a05:6402:e0d:b0:466:4168:6ea7 with SMTP id h13-20020a0564020e0d00b0046641686ea7mr54579387edh.273.1669825460539; Wed, 30 Nov 2022 08:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669825460; cv=none; d=google.com; s=arc-20160816; b=MsQOQaKyciggTnwuIM6uiRHKLLPe7CZMOwXPI6xsCjZP5DyhLFcJCHWvfmdW1ZKP9p ldY0Jd43QECDTYqdK2kVsNhCpqXEdxvIgs4FSCGcBEU1T7iS+zRHnwqqn0dEG7A1YlH+ wL36NwehGP7CAPKI6qGQvDNyvJP/hklTp/g1ukaoRL6S129uw6ioaIt9paOmYwZAoF8Z B1wu5hh62/0o37ljqpxrhGXYsoxgsQ+0VDm2HX7xZdeXoa58/FH10Y3d/KMdSLpO21Sp ahNzwAx5r1wUWsB/IJpBcBYwIJ4/eUscoMu+v2yu8JnJI2DhxNi90D2iaxAC0o2GMd0a ZK/A== 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=iVNwuW5+uccfiZVDEZIcPICj3awEkrtKMxi+jom/QYY=; b=ktV+cPuOp2yfR23s95OtTuwsrB6CZb9bmD1gFCuoxAEq6g81Zj2eQBs8Df8/iQ8pNl hvSP3nPGJ4iRBaem/XOgxb2VLwHYJL+s4ZynUn5lePTEo43gM+lUzcQyOmAt1MRAVFet lx5xyMyLJ3BiUTT89EPnxZxQvQh7Uxr7rSEnKoFVbaTpOuEHGrol3+CHR2NJN7JcSJoe qcTe+uJTMjLvd1hhJaTjc+1lhh1ECdzTqEIEDEP0U8wwqfEeBJnBKZxOYa+Up4za3Lcb cB9wlKmR+nSs2cZGV+NdwPwKU8CfuVEqoM+FVzTfE5etBN41F5x2IHpwKXVFnfzzxwgI UzvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NNnbKagM; 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 cr13-20020a170906d54d00b0078d4962a32asi1682387ejc.961.2022.11.30.08.23.58; Wed, 30 Nov 2022 08:24:20 -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=NNnbKagM; 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 S229702AbiK3QJJ (ORCPT + 83 others); Wed, 30 Nov 2022 11:09:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiK3QJI (ORCPT ); Wed, 30 Nov 2022 11:09:08 -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 5403F175AC for ; Wed, 30 Nov 2022 08:08:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669824494; 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=iVNwuW5+uccfiZVDEZIcPICj3awEkrtKMxi+jom/QYY=; b=NNnbKagMMit73LKJchiwPePVj7eID1gZstjvZjRkG3DkIEMq88GI3idmfIGJjkPbv3orwU wuBhQflD2+7sDMPwqTN8hD809Sr9VPK3RtUhSVpk84UPBbrdnI50CmkyrPkOldkVAlMzs3 W0dbz2WjAof8Uw2LJyo3/XdMe/jsFt0= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-158-8F99FeFNMxGq8KoMPNNnEg-1; Wed, 30 Nov 2022 11:08:10 -0500 X-MC-Unique: 8F99FeFNMxGq8KoMPNNnEg-1 Received: by mail-wm1-f70.google.com with SMTP id 1-20020a05600c028100b003cf7833293cso1170589wmk.3 for ; Wed, 30 Nov 2022 08:08:10 -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=iVNwuW5+uccfiZVDEZIcPICj3awEkrtKMxi+jom/QYY=; b=swQxrwnEYOlLuG8DpAte6le11yjXw0K5umEhYwbtGE9ZkrW8w27bRFYojpOl09gCcS rCSbF3yXj5uKXlkmDVEmNdgyncl2QQ0qTvgQK8ExhNDYLkzdXGhS1Oftfjcxj+LKVz3y BO8BLsnxygJ9QhGy9HNTJ8TlCUrwXVyRWYE9uPYZ0TouiIvUuFJoS2VJ3EjZGsMWnczH FiUi45jCciXEP/Munp1M0oSfOpbnGDQaXxVkXwKCKkJedW3lblm8wvCrEK9kBGtyuh3t 1AtC7XJZhixK8kfdsRod6jtwtB8gMQb2Tqvxwg8h/pagNqX27vBm6+I0S2Ig0EsjzkrC JOIQ== X-Gm-Message-State: ANoB5pm2OdqPLmAvDj+M/7JK8+0cDD5wfPyxz5dpOhvXpW7j9Z5F3T9H 0dg/3uYLoS9T4FuMjWSLLU5CoP7K5Chj8WaQSADezy46ln0qKT3SnEMhjjSg90jCsOXwHpG0cJB fwBIvvvUE3jJnm9jjQXDRtbXB X-Received: by 2002:a5d:5045:0:b0:242:199a:e067 with SMTP id h5-20020a5d5045000000b00242199ae067mr8932745wrt.148.1669824489133; Wed, 30 Nov 2022 08:08:09 -0800 (PST) X-Received: by 2002:a5d:5045:0:b0:242:199a:e067 with SMTP id h5-20020a5d5045000000b00242199ae067mr8932724wrt.148.1669824488885; Wed, 30 Nov 2022 08:08:08 -0800 (PST) Received: from ?IPV6:2003:cb:c703:7600:a8ea:29ce:7ee3:dd41? (p200300cbc7037600a8ea29ce7ee3dd41.dip0.t-ipconnect.de. [2003:cb:c703:7600:a8ea:29ce:7ee3:dd41]) by smtp.gmail.com with ESMTPSA id e25-20020a05600c4b9900b003cf4ec90938sm2220657wmp.21.2022.11.30.08.08.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Nov 2022 08:08:08 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2022 17:08:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 05/10] mm/hugetlb: Make userfaultfd_huge_must_wait() safe to pmd unshare 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-6-peterx@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20221129193526.3588187-6-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: > We can take the hugetlb walker lock, here taking vma lock directly. > > Signed-off-by: Peter Xu > --- Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb