Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1984166pxb; Wed, 9 Feb 2022 08:32:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjqOOfJRCG6lILR15bnpYNb0TzO2FyPzNmLB4lHnX4gHs9wwq9Z6bNUveMxc4gNHN3uTPi X-Received: by 2002:a05:6402:2792:: with SMTP id b18mr3466882ede.344.1644424363319; Wed, 09 Feb 2022 08:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644424363; cv=none; d=google.com; s=arc-20160816; b=Z60odgarSrCalx2Z7a/uoNMk9uZ3cBwiD/Rz3yZijvgrJUdT7NMBHZPns65iZvhBJA H2AvXtWlaqUqBgpMTGca6KBz0zAa+tHSQTU2w2du7WR8PQxJU1E9lVCkVZoc2EmVmTrl RbQ0PKycoIHJUI1kyO0A/G5kNKd5cboHr3BdrHUq0d9u17HD+EU8GcpDDYjCDPqY5+tB ueWBMA4kk5H1jo8sTwHJbdUXkTPB+CpVQ654A2P41fZartw8flqmiSA9ZA8keAXVkf9g 0xgLeuJdb9zSNp3YNhcUS2uyTsl97iEnrYlxP4t7GRFAm99hg6hY2ZgzCsbysS0UYvBM TKGA== 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; bh=Bnya6VmSL6leRIRse/uCEksReFzWugbjTC+ac8YkiUs=; b=txY4Wb/xkuDi2AIcQauea5ztA9lrhlQ6shH3QkesAY1TevQRD+wouqVktRsZo234g9 KfM66SiEMYdH6kh4kzb5BOGYPAnYWadS6lkODn6nq+/tCM5wbXTdtP3kIe+/z+kFANfL FiMVpQoY5eAQgJssYh1jHKxoD4OAxSoMhUQ9ntfBXT+dnDBKIO4SQ49P5p5ASto8Defl D/D0PPcpNM63XVtB1tsYdyQ39hNh6H8n6RXRijXmmnHuwPlWxGLxiaUeQ4zRX7SHTRkR h2F94pkD2GiHEEdq6uhWkHisRMlUomOxe70/LWvXlttqptm+4CZKS+668DwhzJfgIblv tnTA== ARC-Authentication-Results: i=1; mx.google.com; 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 y14si7089395edq.350.2022.02.09.08.32.16; Wed, 09 Feb 2022 08:32:43 -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; 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 S235348AbiBIQTr (ORCPT + 99 others); Wed, 9 Feb 2022 11:19:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236927AbiBIQTb (ORCPT ); Wed, 9 Feb 2022 11:19:31 -0500 Received: from mail-vk1-f169.google.com (mail-vk1-f169.google.com [209.85.221.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3952DC050CC5 for ; Wed, 9 Feb 2022 08:19:24 -0800 (PST) Received: by mail-vk1-f169.google.com with SMTP id d27so1463613vkn.5 for ; Wed, 09 Feb 2022 08:19:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bnya6VmSL6leRIRse/uCEksReFzWugbjTC+ac8YkiUs=; b=6U3OmFhKPy0DV7IA0CXx6dmQrv7Pdg1eAfqTXYPZD3matBPQdxcSAB9/XNMDRxviEM vWUR+ErcY8/pAKZPgEbqbXp5VzmswIhsn5z1911BJjtGyUPOxWNuwh6e/Nb0XzCocmbV F/aPZyf1nKWxuc3RtNnYeaPVRt/qSj+aEfZVWTFlgNe6zNfXKPB365vepcpTlRzC7ts4 J+Bh6zkFjDYxaOwhBbkazu2c0YwXk97Ks8UrYVy6Rk7BhmlttWqyPMP0lavBaAxxMcbY AjYEO8rPT5K1u5/Ue5AEWydqLORXfJjM1XOY/CvCSmZesRO4ewh8782DUg4ng863BIvw dI5w== X-Gm-Message-State: AOAM530Nj1oaHlsWdM+CeqIJIJ8aPeEhaX13OsTWPkRpuNiQw5sgDbU6 EWaBTyxq5FavvMVD3sybm0/NMcuDsHgspA== X-Received: by 2002:a1f:2ac3:: with SMTP id q186mr247809vkq.33.1644423563248; Wed, 09 Feb 2022 08:19:23 -0800 (PST) Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com. [209.85.217.50]) by smtp.gmail.com with ESMTPSA id d202sm3389710vkd.38.2022.02.09.08.19.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Feb 2022 08:19:22 -0800 (PST) Received: by mail-vs1-f50.google.com with SMTP id t184so3136169vst.13 for ; Wed, 09 Feb 2022 08:19:22 -0800 (PST) X-Received: by 2002:a67:a401:: with SMTP id n1mr910748vse.38.1644423562636; Wed, 09 Feb 2022 08:19:22 -0800 (PST) MIME-Version: 1.0 References: <20220209094158.21941-1-sj@kernel.org> <20220209094158.21941-2-sj@kernel.org> <715a8b2e-1048-c098-8b89-bcf3c13cbd75@google.com> In-Reply-To: <715a8b2e-1048-c098-8b89-bcf3c13cbd75@google.com> From: Geert Uytterhoeven Date: Wed, 9 Feb 2022 17:19:11 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH for-mm 1/2] mm/internal: Implement no-op mlock_page_drain() for !CONFIG_MMU To: Hugh Dickins Cc: SeongJae Park , Andrew Morton , Linux MM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hugh, On Wed, Feb 9, 2022 at 4:38 PM Hugh Dickins wrote: > The thing is, SeongJae's patch makes me wonder, why did it not need a > !CONFIG_MMU definition for need_mlock_page_drain() too? That's because > mm/swap.c's call to it is under an #ifdef CONFIG_SMP, and I imagine that > CONFIG_MMU=n usually goes along with (but does not necessarily imply?) > CONFIG_SMP=n. It'll be safer to add a need_mlock_page_drain() stub too. RISC-V K210 is SMP without MMU. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds