Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp623731rwi; Wed, 2 Nov 2022 16:20:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tkstLGbhfSyY7mLLDW/KtGMsYqPD4lIq6yLuTcJ5VCad1woRPfIzojF4kImmYD9so+48K X-Received: by 2002:a17:902:8c81:b0:178:a33f:8b8f with SMTP id t1-20020a1709028c8100b00178a33f8b8fmr27542187plo.50.1667431233384; Wed, 02 Nov 2022 16:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667431233; cv=none; d=google.com; s=arc-20160816; b=CnmrTgiEGjqHY+90d6w5kzKKehTqE/FShG3RIpdNKlsY0VCyav85H0GSwteBTK4nqK PmBOcjQc3Dd9L/cHLGsb9tAgeuG3fJwOJNIQCA9hMyxCaot/21b4BO4aH8qV47kxhYRt B7K7APbHVlUYg9CyR1nXg0GuY3tfvuHCQK+59PDQjrpHYLOauioBUL/TCGpBRfp/JdOv udmtDC+6dx2eoPQP6tqKZnjDKhAyuPX7iLaxWwsOjsgD4nMqGCdrAaZAWlfM1gkaGrPE 90rP7e9dPAa5s2L1rNoCeZCF77ukqkZzLNEMwrWoc/+SWPcpi2yfJgMKfTtuMrFI0FJq n2Yw== 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=GVuco/fPOv3fEWTXwRJYz62nlQyqO6H+cs6e/gRx3vc=; b=RayRi0tf1HfwB4bBL9FRRmj0h8nmJ52+ooPsnHoKE9BAAj4BoszbKfdsCOmAa1lhNi ls+7TMaefGmptIMgLmVeR9pMgxtx1fEgQdkoAyoTi8vDDD7OY3DR/5ALqKg2/dszSpi2 YVLeltBfNwUsIxsmkXX+rVuj/W1yYoNa1EMFfoL83+k6yWeeTGWGqIJOdWuB6CfHIgev BkeJJDwEl6VEZM04tRpNb/Z2QCD+k2FW9EbvvHZUyQKDsksvVfocoT7P5qF+lKDXup88 XRURwSjN3tfADmHTkndJKjC5p5Sz/8ZniRyrhQxqQzb9sR6KJEiSdN/hML7vG0QmFv00 Jg+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bwoJSQBS; 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 oo11-20020a17090b1c8b00b0020d4dffd6e6si3730618pjb.99.2022.11.02.16.20.20; Wed, 02 Nov 2022 16:20:33 -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=bwoJSQBS; 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 S230161AbiKBXN1 (ORCPT + 97 others); Wed, 2 Nov 2022 19:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbiKBXNY (ORCPT ); Wed, 2 Nov 2022 19:13:24 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 289F6273B for ; Wed, 2 Nov 2022 16:13:21 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id c8so45662qvn.10 for ; Wed, 02 Nov 2022 16:13:21 -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=GVuco/fPOv3fEWTXwRJYz62nlQyqO6H+cs6e/gRx3vc=; b=bwoJSQBSGTuFi1Z2JnP4EuzofGlatFFBbp5t2OLtk5xLcsuAdIMjVYu2q+NBodmZVh HKKcr8Xop5vJ9wwXF6yy95UeGH7IUAKR42lQakOtgXBragSd1iAzLxEsEnWb8/BpeUeD AQHH2G3ajPu4F47YV3OVME+ds1L3iYcSOk6Vw= 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=GVuco/fPOv3fEWTXwRJYz62nlQyqO6H+cs6e/gRx3vc=; b=tLovw0EkdTVPPapfK15xyTgmwFZvUwKZadWazGSMQ+wAu4pLWEfvcOr47+PfrRFF3e pdfs841wWvfAg48W05cYsOkE8SvjPbVuvm9nxHL0MVzFhPgfQbNugZ3J/B83b7cm1ij1 /sxvr5rE2fDSr7MmcIdBnrC0A+C91AdYTPqiIZaNWRoHZ2f792ZduY4SZ4+CmynhsfC6 40PiCobEsieCEkfSbpN7/AJNanQ5/mKTX4Z/962QirSid9Ph69w5LMI8coK+eTxHSZqz +PIYZzA0IQNim+fOtBEEPZpSUc2yb+DjMtoRXVGXCwjPkp95sealyLdSDDOE/fbVMZpi Echw== X-Gm-Message-State: ACrzQf3jsStLCaB2aBrn2igoY0F2wpfHuwR4LcZQ0TMzlPzgidnlJQLT ioYpQiqkPkHVSyed3+0zf17ZLaGFN3hgLg== X-Received: by 2002:a05:6214:d87:b0:4bb:942b:f5f9 with SMTP id e7-20020a0562140d8700b004bb942bf5f9mr23589612qve.126.1667430800835; Wed, 02 Nov 2022 16:13:20 -0700 (PDT) Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com. [209.85.219.176]) by smtp.gmail.com with ESMTPSA id bl33-20020a05620a1aa100b006ed61f18651sm9474763qkb.16.2022.11.02.16.13.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 16:13:19 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id y72so312456yby.13 for ; Wed, 02 Nov 2022 16:13:18 -0700 (PDT) X-Received: by 2002:a05:6902:1352:b0:6bb:3f4b:9666 with SMTP id g18-20020a056902135200b006bb3f4b9666mr24282606ybu.101.1667430798577; Wed, 02 Nov 2022 16:13:18 -0700 (PDT) MIME-Version: 1.0 References: <47678198-C502-47E1-B7C8-8A12352CDA95@gmail.com> <140B437E-B994-45B7-8DAC-E9B66885BEEF@gmail.com> <20221102233127.423a6112@thinkpad> In-Reply-To: <20221102233127.423a6112@thinkpad> From: Linus Torvalds Date: Wed, 2 Nov 2022 16:13:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mm: delay rmap removal until after TLB flush To: Gerald Schaefer Cc: Peter Zijlstra , Will Deacon , Aneesh Kumar , Nick Piggin , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , 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 3:31 PM Gerald Schaefer wrote: > > Just wondering a bit why you did not also add the > VM_WARN_ON_ONCE_PAGE(page_mapcount(page) < 0, page), like > in the generic change. Heh, I had considered dropping it entirely even from the generic code, since I don't remember seeing that ever trigger, but PeterZ convinced me otherwise. For the s390 side I really wanted to keep things minimal since I (obviously) didn't even built-test it, so.. I'm perfectly happy with s390 people adding it later, of course. Linus