Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp632128pxb; Wed, 13 Jan 2021 11:59:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxo4axpNkgv0acmzAZQSzrNj2b5/ymKkxEZH7FnhmvRMEVs+CM6Tz8pA3iZiAct6qOA1fDq X-Received: by 2002:a17:906:b2d6:: with SMTP id cf22mr2777018ejb.181.1610567962237; Wed, 13 Jan 2021 11:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610567962; cv=none; d=google.com; s=arc-20160816; b=FXBDv5OSNSt8/cxTTM+RrrBOmpxlLfujqkTzO5XCKVuKHJ4ST3keOfrpopDm51Jii0 oLfsxm3/5NeCQGCTNCaMXiXJCOCNRoYTi0T3UfCL6mJT4U9K46H2f2aydzh2MGFzdxOK 1ylBfSVuXoZ1Y2srwTnFl0t05o8/HHAcaAsUW30OPDAErUhyChhe94EPDtdRHxkXOgWu I5en0vwyNZabQr9W2D70bwPcwjlCtrvbmHrfncjjReQEB2kvO1ZKRrmlzwCdQVkXtqrQ I4Ym7LF7PPoEPn8XI7IqGQRHaa61NvafMSmJr6dz0cdqgjoe89j7lWKFpe68QLzgRlxZ WIdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5VVRnidq3Ezoxd8/TnzX5XA0I3NxFLA67+ejsz55qsA=; b=DgQg3G3LlRxqT7LWb8pQIqtydC4dpjO3kD1kVNmgI5oyH4Hb5AQsP8MaSWquz0pOxM 7yZEmJC8yWZcr78JJ9cQAaHqUNPKcvV9MC0acZxCZkAqLRRmNfiPXLz0/ZFCWgRNLQfS n8kTMVfg6c0ab8Ei8qxTGbTXS7FPpIogSbTI/urkoAeMGqCY+GoeWaLBWaBWgMd5+Vdi /QVv+3RpF72gS6bGNN0D7a6cXGKW4ZAwC0aRlnMqU0ZiPLFdXTh5I6/Ojf3R9054qYPh ILtgyel/qpC4VTu84cVnv+8G7LPp3H5UYtI1btRTtc3kxdzjyqrhvFUBB/+XYOgAfVz0 8Gbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="F9b11/Nz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si1521475edd.589.2021.01.13.11.58.55; Wed, 13 Jan 2021 11:59:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="F9b11/Nz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728759AbhAMTzq (ORCPT + 99 others); Wed, 13 Jan 2021 14:55:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbhAMTzp (ORCPT ); Wed, 13 Jan 2021 14:55:45 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F73C061575 for ; Wed, 13 Jan 2021 11:55:05 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id o19so4600435lfo.1 for ; Wed, 13 Jan 2021 11:55:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5VVRnidq3Ezoxd8/TnzX5XA0I3NxFLA67+ejsz55qsA=; b=F9b11/Nz6rTHOculKOHTTHckBbUGSVIFhzWAuPpK6tgr/yr5VNKoSQOq4ATcv2NEYB fTH0oj2iOzfW7LrGOaGxAiB7AIQjx+IInRw1kFUYJTKZzZjVp3LlvdODW9YjJztz+Z7I BbBh607WMcIgEMFet9Z99iKvCvhUVIZMf9Qv8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5VVRnidq3Ezoxd8/TnzX5XA0I3NxFLA67+ejsz55qsA=; b=XCHJDwV7pg1nv4pXVX7XUqx00wVMSk9vsmjT1FAG3290UadAz3Xrt3H9XcJgN7uYnb f3mVLL/iNIo7rIRMOhtc4Nz/kxsMuQIJBtfXwilRJ1li57UzqW4IOembCBn6z27Z+lVY GbrPocOXepKCKJGdsb/DM2H/ZCMM7JB22zRhk5c2J6X14qKBSAzK4JZxM26gTddQnaUH w+YYEEoxLrm8A3161UZjedb4hy+g2wujram8Z9juYU3dIekeFNEB5045Syb5Pe9PVIXP Vk6VZh2QTUbCT6IJdgaoS7hteXHCN56TF8mhQFr0c9caGPkI6jMaByMxPg2/Mq70YC9Y zMlQ== X-Gm-Message-State: AOAM532yDoq+lm9BmaUAFcXMvlB4OAxVuVYe+DqLu5n7REi782CZbzmD 2IgSeW3poPZ1I8U5Pp7RUKX5qSfNspMLVg== X-Received: by 2002:ac2:5c5d:: with SMTP id s29mr1499972lfp.88.1610567703521; Wed, 13 Jan 2021 11:55:03 -0800 (PST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id c1sm276407ljd.117.2021.01.13.11.55.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jan 2021 11:55:01 -0800 (PST) Received: by mail-lf1-f43.google.com with SMTP id v67so4600141lfa.0 for ; Wed, 13 Jan 2021 11:55:00 -0800 (PST) X-Received: by 2002:a19:f014:: with SMTP id p20mr1485833lfc.421.1610567700198; Wed, 13 Jan 2021 11:55:00 -0800 (PST) MIME-Version: 1.0 References: <45806a5a-65c2-67ce-fc92-dc8c2144d766@nvidia.com> <20210113021619.GL35215@casper.infradead.org> <20210113123232.62vv6xsrpitne7hc@box> <20210113125532.GN35215@casper.infradead.org> In-Reply-To: <20210113125532.GN35215@casper.infradead.org> From: Linus Torvalds Date: Wed, 13 Jan 2021 11:54:44 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse To: Matthew Wilcox Cc: "Kirill A. Shutemov" , John Hubbard , Andrea Arcangeli , Andrew Morton , Linux-MM , Linux Kernel Mailing List , Yu Zhao , Andy Lutomirski , Peter Xu , Pavel Emelyanov , Mike Kravetz , Mike Rapoport , Minchan Kim , Will Deacon , Peter Zijlstra , Hugh Dickins , Oleg Nesterov , Jann Horn , Kees Cook , Leon Romanovsky , Jason Gunthorpe , Jan Kara , Kirill Tkhai , Nadav Amit , Jens Axboe Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 4:56 AM Matthew Wilcox wrote: > > Yes, Linus mis-stated it: Yeah, I got the order wrong. > ... but as David pointed out, I fixed this in e320d3012d25 .. and I must have seen it, but not really internalized it. And now that I look at it more closely, I'm actually surprised that other than the magic "speculative first page" case we don't seem to use page reference counting for non-order-0 pages (which would break that hack horribly). Linus