Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp323793rwb; Wed, 16 Nov 2022 00:49:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf6moMmk9n8/+BlcBAKvoh4ExekgoxcTxJezRJpYBExLTgydOZEDoy6Bf0elNqwmdkDSzCLm X-Received: by 2002:aa7:d58b:0:b0:468:4c9a:7c6c with SMTP id r11-20020aa7d58b000000b004684c9a7c6cmr4857793edq.397.1668588555488; Wed, 16 Nov 2022 00:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668588555; cv=none; d=google.com; s=arc-20160816; b=RhvDLZpp7NuKovgdvfRCMQ9cNyrTHOsakchbXGteBVa0qRxAMHvlL0HlIESQoxmIBd 7Ku+qmypfpPgDJ0zFxqghCdCgMpp9Eoo5XpFoxMXEUfB1B0GvoEIUCmwNr6g1hrfwfJe RoB1D05ptJXjnl2Xtsu3NJJcSUQSGqOXOnoOD/hOkEzvXnqV99mmUJW/NTsj/WM5zVHb yK2Lr6dmruNcX2zEjJ4j/cQ7edfIgHscv4+8oNVOrMEbUJkq5Iz9P0Yz+EW2CzIocYFT zZ4/2ErLrNyf/yOmhl54XoOLhPnu9QXUFpe5MsbPbXTYivlXodycNG5CQhoFyFBAOJlK 06uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yJOS+aY4uxXjb1jN89XTgEQFnk8Jg9xcJP65aywGmME=; b=GLwb3+/7B4alpg/3rtbvr25SgKJGbF0eNvHPLFdxdtfFSjPPiALhQuu5NM5/FgUBHv nA1t5TiR7Bug0RZfeOAWVVyi7CrXbODjo3jHXJKqqzgYRfXGJCeeh23+sgNSfKDfWy5b katJNtN0iW2oQgn+QuMmfcZCqUyQoX+sYzmx4T3IZEW+yLI90zfcggCsov26UEA0+RMe wuPTaZeAs//A8XavHehFEX/NojdlhV8Wz4vxBoC8qtAusrJFT0YaYIGnDwSc7QoNeTzX 4yoQiRUg1aOc1LvpR9+btVoY624bcfy438S4T0Lm7jje/maKOPkGUA0W8kL7f+4iRWw3 HswA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XisJwiRX; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020aa7cd4e000000b00461aa80dfa8si12507478edw.429.2022.11.16.00.48.52; Wed, 16 Nov 2022 00:49:15 -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=@ibm.com header.s=pp1 header.b=XisJwiRX; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232019AbiKPHsf (ORCPT + 90 others); Wed, 16 Nov 2022 02:48:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231547AbiKPHsb (ORCPT ); Wed, 16 Nov 2022 02:48:31 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE56E10AF for ; Tue, 15 Nov 2022 23:48:28 -0800 (PST) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AG7i1vs034988; Wed, 16 Nov 2022 07:48:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=yJOS+aY4uxXjb1jN89XTgEQFnk8Jg9xcJP65aywGmME=; b=XisJwiRXALFvfWN7GMBnQ8yIng3pgs9ZrHEf9FOjTVyV1vy5GEMP9tDaw7z01OtT5958 w/U7TfPVcS3vBIyPy+yYQjhuCBljMtVbr9gjms9kdXexopwKH4oJ/LHV2CFfrOZC6KTA MZXUG+MVQXQPRGDEbBjyQeYJz5U27G3vD5GAwMZ7jTRhJVjs4rIgwFOV/xI8S+nZ7oVn KA+dXSSNdJBIZALtiUsbtVIor40kEWI1oFboGVEFQiqQZkcaVlVWM5LvcoK+YMqmihpb I3ZdcPgz84CM4Bu7w7egMyIZTUKqOvMWk88DSJmGGuAQwdFGUyy4kqIon2RMp2bPUNsc mg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kvuqt82r3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Nov 2022 07:48:08 +0000 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 2AG7iRqg036461; Wed, 16 Nov 2022 07:48:08 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3kvuqt82q8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Nov 2022 07:48:07 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 2AG7a9o1022267; Wed, 16 Nov 2022 07:48:06 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 3kt348wg9w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Nov 2022 07:48:05 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 2AG7m2Ee2097698 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Nov 2022 07:48:02 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B624C11C050; Wed, 16 Nov 2022 07:48:02 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0110911C04C; Wed, 16 Nov 2022 07:47:57 +0000 (GMT) Received: from li-4a3a4a4c-28e5-11b2-a85c-a8d192c6f089.ibm.com (unknown [9.163.49.19]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 16 Nov 2022 07:47:56 +0000 (GMT) Date: Wed, 16 Nov 2022 08:47:53 +0100 From: Alexander Gordeev To: Linus Torvalds Cc: Hugh Dickins , Johannes Weiner , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Nadav Amit , Will Deacon , Aneesh Kumar , Nick Piggin , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , Peter Zijlstra , Gerald Schaefer Subject: Re: [PATCH 4/4] mm: delay page_remove_rmap() until after the TLB has been flushed Message-ID: References: <20221109203051.1835763-1-torvalds@linux-foundation.org> <20221109203051.1835763-4-torvalds@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: nKf9scsncoprrYnvH0qiQW2gFDTXS8No X-Proofpoint-ORIG-GUID: OYYOBsQaYecVKeutS2P7FI3kF-Mwpj2l X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-15_08,2022-11-15_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxlogscore=691 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211160053 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 09, 2022 at 01:04:07PM -0800, Linus Torvalds wrote: Hi Linus, [...] > 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. Which actually brings a question whether CONFIG_MMU_GATHER_NO_GATHER mode could be beneficial for UP? But anyway, please find a follow-up series on top of mm-unstable with patches 1,2 aimed to avoid delayed_rmap flag on s390/UP and patches 3,4 hopefully cleaning things a bit (not so sure). > Linus Thanks!