Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp923848ybh; Wed, 22 Jul 2020 17:25:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhUqlW8NabR1kui1EOxFqnjqhApqCd637BE5zSw54+0wgrZuWmFOOlJZVf7RmVA10PtlVX X-Received: by 2002:a50:c307:: with SMTP id a7mr1737625edb.279.1595463912727; Wed, 22 Jul 2020 17:25:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595463912; cv=none; d=google.com; s=arc-20160816; b=pwb++bdLbxKTv0qniUBuOR5MrsQZooAyIOeFJpBWFlccThCXFoaOdDQ92UEmIBhiSI p5QYRU3/zZg7P7uMsTEb9rrOyGzCXVoSWI0Q+daRrU8H8821jErOIvy9n+4DlSFYnL5y I4gjLZJBP+OIzxltW7h4UgllsD5ysGkDNkmqXn70a2jw/x50poc09wCXY2SUwHA42060 kQMZWHeCoTnp2aO81qU3pMRf58YBMY1hs+IqtveRuRUea6Bnxr9AUXd6Lqq5gSUtCZt5 Qig3Huc1hLjGK0KkIcfDnF4alR7Z6+mrEkekrAAgptjQlvbC2uGjbhKyh4awog44Cd3+ t1OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MLLzW+27c7XskPvxXHpuyTEdYRgvVTLDhxahIBegs8U=; b=aPa+z1hvcCW4+zBhQ+3heeL/+kKFFpm2/8HbfRpwSKYVz1r++in6PoHvWSAbZQIETJ qbZzE6y+kGyUfACqT+4DbI0VzDgzI6H2t69sMxWkEGEL9qDq0pbpnedemtcYs5dV1kA1 SkgVlyeu8ed6COMLMN/4N7SLFVugErRrh0h845uxMTdzZyHkaIyOnKKIuRfVEgl9u1n3 6yQQXPJ0OKsB5TWc45VThpba6gzutJ4wJqjsLo/RuPTrOWfZvmb7u8Bs1hmkzOuIRakF 75zSUoWW3QLTBsdDpvikyHoAzHOYYA0MmEW7FkcO82IQn4YUk6wBqzvozP/5WAAhUpoW nOng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=faikLq+G; 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 l3si937138eja.81.2020.07.22.17.24.35; Wed, 22 Jul 2020 17:25:12 -0700 (PDT) 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=faikLq+G; 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 S1729486AbgGWAXX (ORCPT + 99 others); Wed, 22 Jul 2020 20:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728607AbgGWAXX (ORCPT ); Wed, 22 Jul 2020 20:23:23 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91AC7C0619DC for ; Wed, 22 Jul 2020 17:23:22 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id i19so2338196lfj.8 for ; Wed, 22 Jul 2020 17:23:22 -0700 (PDT) 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=MLLzW+27c7XskPvxXHpuyTEdYRgvVTLDhxahIBegs8U=; b=faikLq+G0vsoBxFYA9T/K3S7QiQTxZoo+WHfXFKRntEclWn6SyFd0s8e5ihC2YGfEC xwEvgtLDOzsUvG+mLwzkpkw5BWy4EaMb85BSL5WQahdJG+1+X8n95u66NxFu9yT0IBOw 4tNBH4IclDxdU2pXAz9akDwoOAVeAIioMO1QA= 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=MLLzW+27c7XskPvxXHpuyTEdYRgvVTLDhxahIBegs8U=; b=ETBQP9TZ0ZrrDCOC8AC+RLRQDlRARhsWWcGGUhK75RDcUW0Zh8qFkuq3TH5DaRfs7Q nQTXdJXT5bdIYedBEYoeC9pg1DctP2735aC1VRVfM3lWO4O1xeBYx6tujvxZhanNzfvK YT7UfonvCcxQvCCWTEKqs/ADHoI5IbxQz2dQ+nJkwOnNevUkV8flDAsuIthMJPsbgSA3 uWzbTk6FaFVSNBu+dQmCa7Up8vR4sA6bID7F4NuOEZCl0pDFY8Ynm1irJKSLx18iBrwj R5R2EO0t32XyaUqy6bajfi18IsMGv+yZXrhcquxAo6vEzJc2fvuuftfhvQWfQXIohS4y 0jeA== X-Gm-Message-State: AOAM5339C6m2ITVnaM7wac/li4brvQh0cZ0zFlbL50hvzVnZwSWA8+e+ 8HFWJNh284mqc87M8m7ZAUxgXh77g38= X-Received: by 2002:ac2:5991:: with SMTP id w17mr873525lfn.153.1595463800460; Wed, 22 Jul 2020 17:23:20 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id g19sm294270lfd.28.2020.07.22.17.23.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jul 2020 17:23:19 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id e8so4505399ljb.0 for ; Wed, 22 Jul 2020 17:23:19 -0700 (PDT) X-Received: by 2002:a2e:9c92:: with SMTP id x18mr706723lji.70.1595463798932; Wed, 22 Jul 2020 17:23:18 -0700 (PDT) MIME-Version: 1.0 References: <20200721063258.17140-1-mhocko@kernel.org> In-Reply-To: From: Linus Torvalds Date: Wed, 22 Jul 2020 17:23:03 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] mm: silence soft lockups from unlock_page To: Hugh Dickins , Oleg Nesterov Cc: Michal Hocko , Linux-MM , LKML , Andrew Morton , Tim Chen , Michal Hocko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 22, 2020 at 4:42 PM Linus Torvalds wrote: > > NOTE NOTE NOTE! This is both somewhat subtle code, and ENTIRELY > UNTESTED. It seems to boot. It adds more lines than it removes, but a lot of it is comments, and while it's somewhat subtle, I think it's actually conceptually simpler than what we had before. The actual waiting loop itself, for example, is now entirely and utterly trivial. The DROP behavior is also a lot more straightforward and logical, imnsho. The biggest annoyance I have with it is how it open-codes "finish_wait()", and honestly, the "proper" fix for that would likely be to simply instead make "finish_wait()" return the "did I need to remove it from the list or not" value. That's the only reason that patch open-codes it right now. It _feels_ like the right solution to this thing. But maybe that's just the "pee in the snow" effect, where I like it only because I've put my mark on it. So it would be good to get more opinions, and perhaps more testing than my limited "it boots and works for me, and I can still build kernels and run a browser". Linus