Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp309261rwi; Wed, 2 Nov 2022 12:10:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79Hj2YDFVOAGuPrRbZwRsGj5m/ULIGRvFtibSz4+RwQ5kU1lttJf79R3hpAxOnRxsDZtRW X-Received: by 2002:a17:907:168c:b0:7a5:74eb:d123 with SMTP id hc12-20020a170907168c00b007a574ebd123mr25887870ejc.268.1667416227829; Wed, 02 Nov 2022 12:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667416227; cv=none; d=google.com; s=arc-20160816; b=AnM3Vuwl8tVPOejqKF7mlzaIBgBVUoXV3IedVF0LdWDnUb1MXgc6uHdlat4YRKEqom pRWnw7VTu2zu5GH6rdclnZ5jGzhonMTEZS7E49M/3M5yXaH4EOmLRqqm4QWxaFfu/noU 9vgBs/OxbI+d9dWauHNhHaBee/nywqqTYv512vK9NLBWler24h0O3aZc61Efj4nAVJNL affLQtCO679q4lNn6eF+bhFKOhStBDBkG/x2AszrlTXA6tPEbmmJUTXkzrLFJ6+7U03M I5FHvDw1HwAY0ki2QtvaxHCgDUmAkmQfEy2t8jKNfFwoi/4mUbt4fpRFTJGnUQ+DX17F Geaw== 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=+tfgl/2wz1H/8UpZUR1BGxO9QY8fMwSWN8ozNgnnwNo=; b=jKaS4/2nhRmyBRq2dhif5F1hhhN4B0iHIZI++du/D/VleA3FdANHJ1957J+zOH4xmK ETtvWwh6GXfP1HVtfkwbLV1yiq7Er+b8RNevj7cum1KDU5FE2AvHhEjxLxWwS4M8nhI0 RMijdCQ+99KXLAbJMLy1535K4mhRkZi8KSUfllDGpwI2bj7aCysqE5YbCktl3WfZ5ky4 dD+oMQB30kOvBXYaHZAB9Cs7OGjZyaLlRFbV9C9CGr0JkBKDpDl5yRxHg0kXp6EhQ+IF e0E6BCeCi1nnaZ0ch0b2iT/jZJRv2x4rtYqVPop0Z47cQwQF5viZwNQmMhWi+gGSh70F uywg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NeK0NeRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a170906059100b0077a19529760si14362601ejn.65.2022.11.02.12.10.01; Wed, 02 Nov 2022 12:10:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NeK0NeRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbiKBRza (ORCPT + 98 others); Wed, 2 Nov 2022 13:55:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231383AbiKBRz2 (ORCPT ); Wed, 2 Nov 2022 13:55:28 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 993C02EF1F for ; Wed, 2 Nov 2022 10:55:27 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id j6so12955756qvn.12 for ; Wed, 02 Nov 2022 10:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+tfgl/2wz1H/8UpZUR1BGxO9QY8fMwSWN8ozNgnnwNo=; b=NeK0NeRjuTAZUtHhMjgNyr6bYudXXk6DWAHX3bTjmN4JSWdzL6JeZGWMcTF+HKB1jh MxgfTRp94CqtCSRHcGW+QimC0eY6cr+M+yV1ssIcn+3APuGyZYLufIf07JWzaUc4957/ eUOIf2N32qzKN+9Hwta9aX6xiuqzbYaFCmZks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+tfgl/2wz1H/8UpZUR1BGxO9QY8fMwSWN8ozNgnnwNo=; b=iZ6K/bEH88+6VjWaw/i153vuVG1CM3M+2xShy5kTGZaCeGWgqGJssVpB6TKKIl2rP2 AS4UwAXJKlAbeoZ9eEfB45XFtW725QnpinmBmnD7lGKi7mrixQLonphJDV4/rGNP95BO Qa/KQTKcgP+1xJXmFeDW6fTnBwHtn3vpbMo6mHqdVa6rX2gnCxV65QQyu/SKByiA+aLL /+pB6VKoVWF6Sr1K5kuRcvjyCm7SsUMAayoFh1xeHy4ZEGDZxDw+6benGqtlqWpD0LwH z4wsEjaZTa/n9++DwpbDwcBNh/rIuXaL4EC/9VaT9D3jwofHVoisqovUYPAWsId0eAlI q/lw== X-Gm-Message-State: ACrzQf3+AQYwLcayUwznrugrXirqBZdD4MI7Gw10ROuRY4JZdSiw+eYK IbPGMqwBQ/O3S1/65QMcY8gLtyBy1LJP/w== X-Received: by 2002:a05:6214:623:b0:4bb:91d1:53cb with SMTP id a3-20020a056214062300b004bb91d153cbmr22345277qvx.64.1667411726835; Wed, 02 Nov 2022 10:55:26 -0700 (PDT) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id q68-20020a378e47000000b006b929a56a2bsm8802313qkd.3.2022.11.02.10.55.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 10:55:26 -0700 (PDT) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-37063f855e5so87245687b3.3 for ; Wed, 02 Nov 2022 10:55:26 -0700 (PDT) X-Received: by 2002:a81:114e:0:b0:36a:fc80:fa62 with SMTP id 75-20020a81114e000000b0036afc80fa62mr25201108ywr.58.1667411726040; Wed, 02 Nov 2022 10:55:26 -0700 (PDT) MIME-Version: 1.0 References: <47678198-C502-47E1-B7C8-8A12352CDA95@gmail.com> <140B437E-B994-45B7-8DAC-E9B66885BEEF@gmail.com> <50458458-9b57-aa5a-0d67-692cc4dbf2ad@linux.ibm.com> In-Reply-To: <50458458-9b57-aa5a-0d67-692cc4dbf2ad@linux.ibm.com> From: Linus Torvalds Date: Wed, 2 Nov 2022 10:55:10 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mm: delay rmap removal until after TLB flush To: Christian Borntraeger , Gerald Schaefer Cc: Peter Zijlstra , Will Deacon , Aneesh Kumar , Nick Piggin , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Nadav Amit , Jann Horn , John Hubbard , X86 ML , Matthew Wilcox , Andrew Morton , kernel list , Linux-MM , Andrea Arcangeli , "Kirill A . Shutemov" , Joerg Roedel , Uros Bizjak , Alistair Popple , linux-arch Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Nov 2, 2022 at 2:15 AM Christian Borntraeger wrote: > > It certainly needs a build fix for s390: > > In file included from kernel/sched/core.c:78: > ./arch/s390/include/asm/tlb.h: In function '__tlb_remove_page_size': > ./arch/s390/include/asm/tlb.h:50:17: error: implicit declaration of function 'page_zap_pte_rmap' [-Werror=implicit-function-declaration] > 50 | page_zap_pte_rmap(page); > | ^~~~~~~~~~~~~~~~~ Hmm. I'm not sure if I can add a #include to that s390 asm header file without causing more issues. The minimal damage would probably be to duplicate the declaration of page_zap_pte_rmap() in the s390 asm/tlb.h header where it is used. Not pretty to have two different declarations of that thing, but anything that then includes both and (which is much of mm) would then verify the consistency of them. So I'll do that minimal fix and update that branch, but if s390 people end up having a better fix, please holler. Linus