Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8844506pxu; Sun, 27 Dec 2020 22:46:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJ7E4cHTpQ0oqT3iL8x9LnV2DGj5USN+HhRYcKE05nslQatPSMYyOezslUXZKjbAuqQp9J X-Received: by 2002:a50:f299:: with SMTP id f25mr40746000edm.133.1609137995120; Sun, 27 Dec 2020 22:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609137995; cv=none; d=google.com; s=arc-20160816; b=frc/c5g9/vaf8yK1QO9keKS1dMs7HcILr3gE+mIodMopBE3IXELMhX8sA8pZ87RuBs kbHl+sYoJp/HtrpqFaIZOq26XL4oS564Lyrr7OJQ3QBMAJWHvTOU9cVwPSuAIqzTaAUk ARn837CF1Fx2cnjpIa5C7zmH81KYOFnmlRRe3OIYySd9wYTjXFR8+a5Q4oh0wxZk9HZ2 O6nD/qOXiUMVOzPzMXqxCFJOQGL4vqDAt8zIrLNpUwJISmBrSfSD8wzG5WZA1BwD+Kik 8K9T9RwOxRdTPXkizRa0cqmBp217S2UC7TR08+LY/HrdH/Nf2wLv1hLvoJ8pLxyqcgYy kvvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=o5wtPX61QoOqoZU2VTRJCE3ZyQ3KdZXG3FjCWYnhbEo=; b=MJuayijKksgUdTKVbLKkQfDNla0SuIqtFv4PAnIHpl6HXfL0Tl0Qz3Ex7diqLR0edF IaDPUq9cOgmn0fydt4Av8EN+RviKGsSEUmAOQiqNX+IuZjMipFiyZHdXRMFIK1upTFek KDuX5EUncH52xy9BJ4L4qHZKAgApuZm9xwEm0OI3NTJgKZjUckfu7YJuDLheSgxllTkW SwjpW1XCpCmvkuZHB0r7ay3sOzUJMj+UUzTa1bPVwHhELl152l478+TNKOaPPMDPfLzM IwSasx6Ngs4JS+K8bOZK7uDbxmqSHw5SsUahEoi1P5lUSU52+SOEtyyuiWGMRRlauvhj RIsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MBH2w4ZV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si19045083eds.248.2020.12.27.22.46.10; Sun, 27 Dec 2020 22:46:35 -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=@google.com header.s=20161025 header.b=MBH2w4ZV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726531AbgL1Goo (ORCPT + 99 others); Mon, 28 Dec 2020 01:44:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgL1Goo (ORCPT ); Mon, 28 Dec 2020 01:44:44 -0500 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 180FEC061794 for ; Sun, 27 Dec 2020 22:44:04 -0800 (PST) Received: by mail-oo1-xc36.google.com with SMTP id k7so2030089ooa.0 for ; Sun, 27 Dec 2020 22:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=o5wtPX61QoOqoZU2VTRJCE3ZyQ3KdZXG3FjCWYnhbEo=; b=MBH2w4ZV23RJuSVoaMPfo6ofBhwPb4jewXSeYQP1woVvN0xBSyjZWO4V96+cOKOtnL 3jCjNCOgv3I+YECgRSpVULJVXQhGZt1uchfOt8BAsCMtx4C+2cBR+qkrCkamned2He46 SERg4fDJusnUBrJhqRzLq8ROXsSy5J3dYE1Lsw33VAELTQKK/p2FE36yScc77AOXTzQb UfNXx60MJaNTev25LrjbWQPq5vj8uYXozn3xWo6THV0WcAAa5fYKiCU+eDYVV5mIs3d8 chsppqTQkqI/DyVSrSPfw3Hv8Mw3rI6rw4gj7SbSKMSIGfcGEaoiZtFuCKpEKFkFC+A+ i7vw== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=o5wtPX61QoOqoZU2VTRJCE3ZyQ3KdZXG3FjCWYnhbEo=; b=OCFKcc+XZShpY7n0/mJRJuX8vmuE+WpAdysyEF6gIBxnagzLG54gDqhjwyGBwjR7AJ FMoeHhIIHzwTadJY5FmVXhOGhEZ7lRXFSfuhG4AqvSl8LTeEGB/GHXymULbnTFjd/m2Q RAm6NvsdSjfCaWYLEOs8CuAhk0f4lWdAFV8gbraJTkvpR3xtCxp6wnPiufNzDlqxAuaK 5i9jXlUJOS2oLEJGyxRSffIXSNVddLVDIZFRB5QuisypIBv86in39MnIsgaSXdNYajPR bpm/+Djp4z5K/tip917nxra10LMmrlrKQpEvSRxYUeX5sDxnezqpx7DfXjnebX9qAweb ynxA== X-Gm-Message-State: AOAM532eOD21HPWsm+hbbBznROTzeTg/c3bwuz/PLb4kSL7iZWlzcOo7 5rvH1nxPY8CAFm4N0tqr5zxpWQ== X-Received: by 2002:a4a:cb84:: with SMTP id y4mr29970687ooq.70.1609137842984; Sun, 27 Dec 2020 22:44:02 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id l134sm8666271oig.25.2020.12.27.22.44.01 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Sun, 27 Dec 2020 22:44:02 -0800 (PST) Date: Sun, 27 Dec 2020 22:43:44 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Linus Torvalds cc: "Kirill A. Shutemov" , 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 Subject: Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting In-Reply-To: Message-ID: References: <20201225113157.e7hmluffh56fszfc@box> <20201226204335.dikqkrkezqet6oqf@box> <20201226224016.dxjmordcfj75xgte@box> <20201227234853.5mjyxcybucts3kbq@box> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 27 Dec 2020, Linus Torvalds wrote: > 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 ... And guess what... it's broken. I folded it into testing rc1: segfault on cc1, systemd "Journal file corrupted, rotating", seen on more than one machine. I've backed it out, rc1 itself seems fine, I'll leave rc1 under load overnight, then come back to the faultaround patch tomorrow; won't glance at it tonight, but maybe Kirill will guess what's wrong. Hugh