Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8730494pxu; Sun, 27 Dec 2020 17:56:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8dGQg588rGZp+ZYlGvfgTuCzLZIAUbiPO5gBmmmKBiRePWQ1u3WhPH5L37isov/q6AdVZ X-Received: by 2002:a17:907:40f0:: with SMTP id nn24mr39353155ejb.233.1609120596360; Sun, 27 Dec 2020 17:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609120596; cv=none; d=google.com; s=arc-20160816; b=baQfLNfNNVxUXUAkaqgTx1NqxBjsvh9N4m5JN8Bzwd4kIrnDvYQPw9zhDXvR9HBO2E tXY/7ot/uhIVv2wpX1EMFVJ4w6PS8M7gSFFYVFUZxV+WuOm4+VF+B0OvDdGo4q0YfnLz FgKUnwVVDh+bKBD3Y7yZdeoHAo3x0bti36k5us9MmPn1F+nVjUAIiHrcsMXvz8rsp5tA YcAA5Yr18g2uaXHbvLsQ5k5777s58iM56We5XCjrRo1YiJUWGd38He0MY5H9d9rVH+8M ZjrgIsKc5xfP9CZ9AJi/5v5SfGDW6JIVdd71bCzK2dJJ9zQhEz05AvhdbEjcrXMq6KVK DueA== 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=H1lRjsgoyhilZK+oNXD2wNhl23j+kp8k6kqf/g6+eOY=; b=S50CGEI2MFa1d0VdjzJ7d06izSwQgwAQNcx/7lQxz0fUL3KBZDt1YKPO4s9lcXyYzC A25HWH1LjpzgmBFMP/rGz0HHIawuV8bM2f6wZaChfZd5qqLP01mxyR8skj4qerI5JTDg PtRiOt45KF3dWNj4RV74vvN3hIOS863D3WlOzNld7sqJpwTAGQE4ch37JbUkrWj1nDMA TxBlk2DOJNojGahyy6r3IwK6zB4mDOtPqx3MiBQ7sMPYf80ciy+/uG8JwU4MMFQRLE8V ZK/F80f4bXuoFToHYVfqL2Zt+uOmGIgfa1bsvBlM9sCq53TRReSNaYH17QZlIW5fRMxi N9MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OyMg5oCZ; 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 zp23si17733217ejb.261.2020.12.27.17.56.14; Sun, 27 Dec 2020 17:56:36 -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=OyMg5oCZ; 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 S1726289AbgL1Bze (ORCPT + 99 others); Sun, 27 Dec 2020 20:55:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgL1Bzd (ORCPT ); Sun, 27 Dec 2020 20:55:33 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7103C061794 for ; Sun, 27 Dec 2020 17:54:52 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id m25so20792928lfc.11 for ; Sun, 27 Dec 2020 17:54:52 -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=H1lRjsgoyhilZK+oNXD2wNhl23j+kp8k6kqf/g6+eOY=; b=OyMg5oCZz79wox7nowQJIpdsLexJGQfx63D+5ySlWUwH7Pkiy7xy3Ex+2Qfr54Fxrw B7ogNZi6NjP16Ujs2kphKgiS6jqmv7MeAksxip495bhvgr0ezvW2GQyMYjVPM+qXVDKa n/JWSzvL+cU9vv3gN1T5F4fiA8fvrEUnaM8vg= 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=H1lRjsgoyhilZK+oNXD2wNhl23j+kp8k6kqf/g6+eOY=; b=KHWS7oqWoC4Qlcvmhy+0J7YcZGUCiLehWuB5PeIyxy0cIt/WYPC4v21UVO0VtH2Bdy bbxHv9l/nO+x/Xdtr7L97Yo+U8KklSWCeN70uQj9w8tVTGGu2HE7rg4OlO0j8VRpoOSq gZCaof1czwGonlIgy2r0cHe1qr/Lzx/42n3CqyIhrg9b+qyt+52RiuCQvHGjH8VKX/6V R44vi6/blbmitsU8UD3NKWsuIpTJb7S7tnQ8rH1xwDzfthJmC9iw8Muatpq4G2RUP039 cdZJfWD8wQAb9zO+GVrNRT3UlOnq9jmFCcFZpv0wv/eGpZzU02jORVSBzP2xqcog+lY7 VT0w== X-Gm-Message-State: AOAM531eTv6gOjxNtiik3Uz7GYqjuTI5kpIrJeXLOdkhotizlEZjCEPQ AKSw6UD9EzigT5MwiwylD8bThQaDfg6tUw== X-Received: by 2002:a2e:58f:: with SMTP id 137mr20290705ljf.469.1609120490748; Sun, 27 Dec 2020 17:54:50 -0800 (PST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com. [209.85.167.44]) by smtp.gmail.com with ESMTPSA id r16sm6306937ljk.93.2020.12.27.17.54.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Dec 2020 17:54:49 -0800 (PST) Received: by mail-lf1-f44.google.com with SMTP id b26so20827085lff.9 for ; Sun, 27 Dec 2020 17:54:48 -0800 (PST) X-Received: by 2002:a05:6512:3048:: with SMTP id b8mr18913675lfb.421.1609120488177; Sun, 27 Dec 2020 17:54:48 -0800 (PST) MIME-Version: 1.0 References: <20201225113157.e7hmluffh56fszfc@box> <20201226204335.dikqkrkezqet6oqf@box> <20201226224016.dxjmordcfj75xgte@box> <20201227234853.5mjyxcybucts3kbq@box> In-Reply-To: <20201227234853.5mjyxcybucts3kbq@box> From: Linus Torvalds Date: Sun, 27 Dec 2020 17:54:32 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting To: "Kirill A. Shutemov" Cc: Hugh Dickins , Matthew Wilcox , "Kirill A. Shutemov" , Will Deacon , Linux Kernel Mailing List , Linux-MM , Linux ARM , Catalin Marinas , Jan Kara , Minchan Kim , Andrew Morton , Vinayak Menon , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 3:48 PM Kirill A. Shutemov wrote: > > I did what Hugh proposed and it got clear to my eyes. It gets somewhat > large, but take a look. Ok, it's not that much bigger, and the end result is certainly much clearer wrt locking. So that last version of yours with the fix for the uninitialized 'ret' variable looks good to me. Of course, I've said that before, and have been wrong. So ... Linus