From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91496C2D0E2 for ; Thu, 24 Sep 2020 15:08:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 24D6E2344C for ; Thu, 24 Sep 2020 15:08:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="DQJtdWcv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24D6E2344C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9557E8E0005; Thu, 24 Sep 2020 11:08:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 904E68E0001; Thu, 24 Sep 2020 11:08:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7F37A8E0005; Thu, 24 Sep 2020 11:08:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0172.hostedemail.com [216.40.44.172]) by kanga.kvack.org (Postfix) with ESMTP id 65A348E0001 for ; Thu, 24 Sep 2020 11:08:35 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 182CC824999B for ; Thu, 24 Sep 2020 15:08:35 +0000 (UTC) X-FDA: 77298286590.20.boat01_2c1152b27160 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 63D99180C07A3 for ; Thu, 24 Sep 2020 15:08:33 +0000 (UTC) X-HE-Tag: boat01_2c1152b27160 X-Filterd-Recvd-Size: 4484 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Thu, 24 Sep 2020 15:08:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600960112; 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=MQoQDFgY9yaaRRiEJU3spleYVLTHQmZvjCiRju5YF+Q=; b=DQJtdWcvMXzyaKYP0ffQjQtR1i1AMylkVG4qopEaI9gxDrmlPyMMMBpxhqv1XJUMULpCjN en7PqLC9JCrWHgERAKv/nNZ6jCw/iRckmsyi8g1rrhfj6AzzOkfgRFv9sqQ4oaZQJ2Vn/F 9HSlH3kg0aZMAwlruhJqrYzMXNt3gbw= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-51-6Rop6xrcPb6loUFmlIyuig-1; Thu, 24 Sep 2020 11:08:30 -0400 X-MC-Unique: 6Rop6xrcPb6loUFmlIyuig-1 Received: by mail-qt1-f197.google.com with SMTP id a26so2619546qtb.16 for ; Thu, 24 Sep 2020 08:08:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MQoQDFgY9yaaRRiEJU3spleYVLTHQmZvjCiRju5YF+Q=; b=H6at/HiXgRahtOD6GA+zaiXx0t7QaySmQTWj9ksGUAxj/+8/KwMUmOYUMv2xd0N4Ig OL652yVy5IPt1bF+tMltBsqqblRgDCC7flAH/3K0ELsIbt9dt/K+/sMI+2vssyxPWOV1 fiuU5danVKFXy1cErhzeJXsNQfqsXTQdUQ3Msutt39U+qlItEavxsLxbBLfJyixS+nXe y52PxqxfnTELdIuVRH5QG7NoxxwtoeTDqKADm6N24yUkL5/caTwNSuvqzSuthg6mcS8B CwQCsLsbsApgRuxJ76U6rX1NZDSirzN1eUNV0A4+oAv2Mv8vj+5/OkdCKNxlhcpB9Ikl SjtA== X-Gm-Message-State: AOAM533u9G65keAyatzEDNFJpbF+dQKVnWH9UqnbUIbLQBcl9IJuNe6M RTb8tBSBarcwCmWxKT8kkBPNF5hmqIKpF/k6g3+Az/KIWFMN/05S8R+q7P8pTFllkvoy9DAj8kb XsjVAruCMIic= X-Received: by 2002:a05:620a:919:: with SMTP id v25mr46600qkv.461.1600960110109; Thu, 24 Sep 2020 08:08:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPKyFUERco+7cJyYy2qb6iiaNZvQWTPdRkcsArJJYM6TktrNZefehjko3nxuDJ6Se8rtvUPA== X-Received: by 2002:a05:620a:919:: with SMTP id v25mr46579qkv.461.1600960109906; Thu, 24 Sep 2020 08:08:29 -0700 (PDT) Received: from xz-x1 (bras-vprn-toroon474qw-lp130-11-70-53-122-15.dsl.bell.ca. [70.53.122.15]) by smtp.gmail.com with ESMTPSA id w6sm2456247qti.63.2020.09.24.08.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 08:08:29 -0700 (PDT) Date: Thu, 24 Sep 2020 11:08:27 -0400 From: Peter Xu To: Linus Torvalds Cc: Oleg Nesterov , Linux-MM , Linux Kernel Mailing List , Michal Hocko , Kirill Shutemov , Jann Horn , Kirill Tkhai , Hugh Dickins , Leon Romanovsky , Jan Kara , John Hubbard , Christoph Hellwig , Andrew Morton , Jason Gunthorpe , Andrea Arcangeli Subject: Re: [PATCH 4/5] mm: Do early cow for pinned pages during fork() for ptes Message-ID: <20200924150827.GE79898@xz-x1> References: <20200921211744.24758-1-peterx@redhat.com> <20200921212028.25184-1-peterx@redhat.com> <20200922114839.GC11679@redhat.com> <20200922124013.GD11679@redhat.com> <20200922155842.GG19098@xz-x1> <20200922165216.GF11679@redhat.com> <20200922183438.GL19098@xz-x1> <20200922184359.GI11679@redhat.com> <20200923010332.GP19098@xz-x1> MIME-Version: 1.0 In-Reply-To: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=peterx@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Sep 23, 2020 at 01:25:52PM -0700, Linus Torvalds wrote: > IOW, the third patch would be something (COMPLETELY UNTESTED) like the attached. Thanks. I'll rework on top. -- Peter Xu