Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1120896rwb; Wed, 9 Nov 2022 13:11:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf6KvoqyXp46FERSlQltwBp+j3LgZLqagNYUIam+qEcHERD5tWgiHP05uep4nKUjzdD7uk2C X-Received: by 2002:a17:906:a059:b0:7ae:9fc4:28ee with SMTP id bg25-20020a170906a05900b007ae9fc428eemr1602984ejb.407.1668028262942; Wed, 09 Nov 2022 13:11:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668028262; cv=none; d=google.com; s=arc-20160816; b=yQy1Ce73k/9ndVTYwznUdK4tTy4HcGSjPBrumItPnZIJmXI4ZV7rsz9oqshWGemS0G xknf9agPjo9JxiJUFt/alI8qV98amdcUYUe3EwQ3ywcB6Sf/MDGauGRHZQOyxYYsT2wW t/kO4Ng1xhIc5wbI6mTfSM39ccTn1ZJfG5R6gSOX6TY594YHtJ5wqMh2w6YFX297+f5J 7DpXrPk2EPHRbpzbx2s5VWI18rmTlHjs8917AkdkmvAEb1SaZA5R7qbb78ikEO0r5Gji z4DGVEwMCyAeypUaXqSasE7D1LVYjwkV9z8LqfmCQlEMBnFFBFZ92grlB6VZJX2BaVHB 3mOQ== 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=XpdFWP2UvcAbMGbUYPrSMtfLikuC8rkjFeQL5hAciEA=; b=vfYqWzDeuQgxhxPa0qWbCgG8Ygv25eySCuJ7rinPheJQeU9y7PgXhHw793GCfRIREL RoKVycKuqI0IYZcmVUh6tN/ZEBiByAVxMs+nNAkxBo+8CdV0iZZnBG7gUm9ow4oGbL9N fDu96E9dfGdlWh0uxiL+fL11jNfkQzvikbMhyqrFyijxi5Qp5xMrqRzlijBXh7cNbfqL tyQ3L+I8kjToQAxAqtaLWK1vGxrxQ6fMFrcb6Tv8kPyEHPbVTAut9WiM55V3XgSRXBds N5d8upTN0rKUek5tgRUtr4Bq450q4LMIGX2jQ77natChC8kpEUinIAoHJU7FltehaS7h QUcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KdE1Y7fA; 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 z14-20020a17090655ce00b00780328a0868si12800264ejp.110.2022.11.09.13.10.39; Wed, 09 Nov 2022 13:11:02 -0800 (PST) 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=KdE1Y7fA; 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 S229835AbiKIVEe (ORCPT + 93 others); Wed, 9 Nov 2022 16:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbiKIVEb (ORCPT ); Wed, 9 Nov 2022 16:04:31 -0500 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78779B7D7 for ; Wed, 9 Nov 2022 13:04:30 -0800 (PST) Received: by mail-qk1-x72c.google.com with SMTP id 8so18867qka.1 for ; Wed, 09 Nov 2022 13:04:30 -0800 (PST) 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=XpdFWP2UvcAbMGbUYPrSMtfLikuC8rkjFeQL5hAciEA=; b=KdE1Y7fAhltwN53hSoHGDBlfPvPeRlvmLCaw+KCDc1dgnDMy9H9uLEGV037MQ0FqfD 3jZ3GqySXl6FuE9sMkaeHxI/FeCXjw9BIDb8HnG+G4ne79A53gyDug1ySQnIjLw7vakB nWaiifZbt81yMI6xYRyWLd5CJDeRZcuejE4mM= 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=XpdFWP2UvcAbMGbUYPrSMtfLikuC8rkjFeQL5hAciEA=; b=x5fiV4YlH9SyJZMo/1fNia3ekXFMuCzW15ezBWdidWmOKU31DgTSKshEXLDOmzHsUl PvPJlTnoogPeYSetEjarzevgOMCydbGenAtQg3sigM+GY81XcnDBwr5vjcvoKLJ5AB4q WcEZTvKEfosdAdDgGTBo+eUR/eR7PP4pOoctToSbJivcStZNejBQXonl7Go1ZnIbBNxq 5Y8Y9XW9/cq7vV/iv7fNYk7BQuQT4KQ3eJrg+kRe5eUPGWW4vmZJJ/pB6/R1A9tkOu/M ndzANCwrJs1Dnccw6hWabXcs03WEVD/+KQUxJBjigPCeqNUHvrswTr90PwhQbM1XUmNV GZPw== X-Gm-Message-State: ANoB5pnHh1OZL2i/9O8hW87VrWdpB8jVF5jfkwflEbsCCEC0FIXSBLvC KtDmCnl6NJ5+JNbbRWvMhbzBtP+5DyaJ4Q== X-Received: by 2002:a05:620a:12e9:b0:6fb:166e:34e4 with SMTP id f9-20020a05620a12e900b006fb166e34e4mr2347843qkl.757.1668027869319; Wed, 09 Nov 2022 13:04:29 -0800 (PST) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id i22-20020a05620a249600b006faf76e7c9asm5271322qkn.115.2022.11.09.13.04.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Nov 2022 13:04:25 -0800 (PST) Received: by mail-yb1-f177.google.com with SMTP id n85so184302yba.1 for ; Wed, 09 Nov 2022 13:04:23 -0800 (PST) X-Received: by 2002:a25:bd7:0:b0:6d7:7464:4859 with SMTP id 206-20020a250bd7000000b006d774644859mr14656214ybl.362.1668027863307; Wed, 09 Nov 2022 13:04:23 -0800 (PST) MIME-Version: 1.0 References: <20221109203051.1835763-1-torvalds@linux-foundation.org> <20221109203051.1835763-4-torvalds@linux-foundation.org> In-Reply-To: From: Linus Torvalds Date: Wed, 9 Nov 2022 13:04:07 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] mm: delay page_remove_rmap() until after the TLB has been flushed To: Hugh Dickins , Johannes Weiner , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Nadav Amit , Will Deacon , Aneesh Kumar , Nick Piggin , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Peter Zijlstra , Gerald Schaefer 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 9, 2022 at 12:48 PM Linus Torvalds wrote: > > I'm sure I messed something up in the process [...] I hate being right. The UP build requires a #ifdef CONFIG_SMP .. #endif around the tlb_flush_rmaps() implementation in mm/mmu_gather.c, since the UP case now shares the empty "no nothing" implementation with s390. I'm not going to re-send the series for that trivial fix, since nobody is likely to actually care about UP anyway, but since I noticed it (after sending things out, sorrt), I'll just mention it here. And I was so happy about sharing the s390 and UP case, and avoiding any code being specific to s390. Which is what introduced this thing. Oh well. Easy fix. Just egg on my face. Again. Linus