Message ID | 20211005012959.1110504-28-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=pyM+=OZ=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE666C433F5 for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:31:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7AF5061994 for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:31:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7AF5061994 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 423C8940013; Mon, 4 Oct 2021 21:31:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3A9AC94000A; Mon, 4 Oct 2021 21:31:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D4F6940013; Mon, 4 Oct 2021 21:31:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0093.hostedemail.com [216.40.44.93]) by kanga.kvack.org (Postfix) with ESMTP id 0B1F194000A for <linux-mm@kvack.org>; Mon, 4 Oct 2021 21:31:28 -0400 (EDT) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C39BB1822B845 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:31:27 +0000 (UTC) X-FDA: 78660656214.30.37019AE Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf15.hostedemail.com (Postfix) with ESMTP id 2DB76D000976 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:31:26 +0000 (UTC) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1951DWvE019244; Tue, 5 Oct 2021 01:31:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=jOKEBeqUdNIGuNIf1dln08O5YJigBOo1pWuIZqhtwyc=; b=mwhsKzO/nrhhApcxk7Zr6Q1vc06tQdGt2JpfkWtdHZfKcZXBp6uF+VZo4VpbpfrKvxWT trmG0gtxftsx26Jtqxvo6vhV8yRsMrXH3KrbsM13AkHpR34Iq3uqVIVqesbzlWlqVHqV p3ip+MwrmXN8w+iQtVgtMEi2K3AFfuuRQ8l/ToHuctoqp68a+W4ZMTjEpZRggzdaFy4F OGs4QnInT3jERNO1dibfmOPrN8cBaeteTayDn2HJWo3UP146pm8fRaokgyhB/ywleXGB Ten8iKdOzBgEaJd4WJ1teQe5JeQQ4uO1ljCGyC4J1cB2rVTbtNT3vwk7UlN1RRAK9RKW wA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bg3p5c99e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:31:05 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1951UdGA141646; Tue, 5 Oct 2021 01:30:50 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2173.outbound.protection.outlook.com [104.47.58.173]) by userp3020.oracle.com with ESMTP id 3bf16s9duq-13 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:30:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H+oVy2i6/DHWY0rPyubj+wPrPagdHwDbF4jC7+vAPdV84QglbqayiTDdlDw2UWQmE08VkfUPB6gICxr+1aBAh4PIkoWZNwFwegFMaJYS/w0Z0XUVm1HMgwhzhan0Ijq9GnDDxLK7ArLftOYG1UbJ31wEqYbD0sP2O7fulfHLF5IiHlYwOPwLUadn2u0pvyDTRgjoEAcMNlsqIBLZidYe7HPMxsJe1LPkJ+0e5GX10ZQtHooMCX7KhEfChXD/Eu72cyR9W22Pqs786Q13Cw4BvfBIewodtN6pNb89/crmHnGtaef3pv9Xy3soegUaYnKkQGXcQLgwlV2LwAVDW9WjIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jOKEBeqUdNIGuNIf1dln08O5YJigBOo1pWuIZqhtwyc=; b=a/b5vM4jV3fvgwFAOEGGxQi27K96sJ3ewvC5ZICzSoJxePjBSHeMB3GuFffmC7vl0FtwKXG3So1Jc+IGlx1muGgZR4gUyM3vII//s4UfGy0IChpJBc6wzjJSmKfCBvJxLbz+7fV2p7BxHiCqrYH3uRgrrinWv2Yg4N2JEbSVmDQd7pFWC3KKC2755NjEocvQ8ugAwTa9NDzgY1PcEeH2srFgl3K6KNwh/A8vy4g9HKUxcvfLIoPSWu26bahHsv0Y8c0QIC6Y/iUxgnKpjFMH//dwZhwdQfuGOQvvwJEvdzjX8+C95qZx2qfkU3nuD6dp9/LNJesVyLyRW0HHNKW9ZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jOKEBeqUdNIGuNIf1dln08O5YJigBOo1pWuIZqhtwyc=; b=U8cQQlo/ab77Z6DC18Jf4Qd5aGMO4Y1GAxmxFHrQOcUhPyMv9H4RLpKw0cIfF3DRsVFJOn/y7AZIYyhrkFs/Wv5kXCMpE0inCBZnrPiW6mzsgMSVjj3YIpbXeiSHntYQtlGRi5zUb2MkRop0HhAWzLZjENJiPzoGJn7hNgOXhaU= Received: from BL0PR10MB3011.namprd10.prod.outlook.com (2603:10b6:208:7e::29) by BLAPR10MB5044.namprd10.prod.outlook.com (2603:10b6:208:326::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Tue, 5 Oct 2021 01:30:48 +0000 Received: from BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a]) by BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a%5]) with mapi id 15.20.4566.017; Tue, 5 Oct 2021 01:30:48 +0000 From: Liam Howlett <liam.howlett@oracle.com> To: "maple-tree@lists.infradead.org" <maple-tree@lists.infradead.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org>, David Hildenbrand <david@redhat.com>, Douglas Gilbert <dgilbert@interlog.com> CC: Song Liu <songliubraving@fb.com>, Davidlohr Bueso <dave@stgolabs.net>, "Paul E . McKenney" <paulmck@kernel.org>, Matthew Wilcox <willy@infradead.org>, David Rientjes <rientjes@google.com>, Axel Rasmussen <axelrasmussen@google.com>, Suren Baghdasaryan <surenb@google.com>, Vlastimil Babka <vbabka@suse.cz>, Rik van Riel <riel@surriel.com>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH v3 27/66] arch/powerpc: Remove mmap linked list from mm/book3s32/tlb Thread-Topic: [PATCH v3 27/66] arch/powerpc: Remove mmap linked list from mm/book3s32/tlb Thread-Index: AQHXuYifpOSQiqS9hkiZRt2nU3d6zg== Date: Tue, 5 Oct 2021 01:30:47 +0000 Message-ID: <20211005012959.1110504-28-Liam.Howlett@oracle.com> References: <20211005012959.1110504-1-Liam.Howlett@oracle.com> In-Reply-To: <20211005012959.1110504-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.30.2 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0021da90-3b3b-45e0-e3b4-08d9879fc270 x-ms-traffictypediagnostic: BLAPR10MB5044: x-microsoft-antispam-prvs: <BLAPR10MB5044C619680E72B615FBD7C7FDAF9@BLAPR10MB5044.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4GD+Yo2xyNf6BW5axeg6KmJ1Hdv2fme6f3cniww2UuMYsF0HG0xIBpECSoSa8ajs5TNTGOoQch/nZFS5pG8cSay8kShMutx1FcUlcjuuauTzXHdagGAhPKZR8hPh04nki3w4e2jhwLLCpA+SV9wiQ/CPyzpN9zkRI7cGoN5mg0JAgIksvdtlBJ3jVc4E/4LmRtdrFFSjkkXP0ZiWmTfYM7HJuQ8ceCmS86V9NiTj7PYCp5jSz5Cfbfok3ZBsVHDhmH2/qHJuDpOcGOo5q+Pt0mOgy4GkcLbMsVBo0w0PrTp8g7yulSor93VyQpmjGofsGlwMiaKU5hTaOKOe7efQAGBgO1RbTfqFL6HQS5n5AU7OuZR9Yv8bSIeuDn0ENd1PvVKrK2RWO9i05by8m9V+8+tt/Vwf+d9p56y/vIM9dHbJM+zr2TU9EY+mIRCrMuLbCAoENv1mSTl0A+AY/hTIgaA7p3A8Sn0L69KOmgrhE9LNrs/XdRxpTy5EP/bXns4h7KwGHpGYUrkNl35ZuM1REd4Oy6CVdknWmtD2eEAW2SFigsxQKdn17730lYI1bcMIJ9UaqxokY/vNkRF32dlICHLY1v9kpDAdQROadGMKnLpxVT2XYXF/ockmqSfrYEjCdWGbRlDm5hKaMlXW0jcad3CiG2T6n2HgXme8j6kgudyqNhQNqse3K6h+RO7aXILlWSg9PoTHkf6p+a5DNdVo5Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR10MB3011.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(6486002)(66446008)(122000001)(26005)(7416002)(2616005)(4326008)(508600001)(1076003)(38100700002)(91956017)(64756008)(66556008)(66946007)(5660300002)(66476007)(44832011)(38070700005)(76116006)(86362001)(110136005)(8676002)(71200400001)(316002)(8936002)(54906003)(2906002)(83380400001)(186003)(6512007)(6506007)(36756003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?WFZgCNx9R31MCocUvf9HW8L?= =?iso-8859-1?q?jrVc5lrjYxlFcTER52/4Rohh32D72kLBIvJcizI76Pw+tl6z2Bbn09lZkrVv?= =?iso-8859-1?q?Cq7mfw6OBeZDdKuLPpCLtILUAP+wuJfmteSzgpDHNVhnz89VSPwn1qD3wcNe?= =?iso-8859-1?q?QsgCP5czsFKOmSM7YwIK0PpjzqbrZiRJOQtaH8pxCVYZMLEWcqw9QkGMbpEh?= =?iso-8859-1?q?+kBGBXaKVMaUZT5DzRDC6w5ZZcaesA9evwQ1kfyXzYbMXacvvW4PWf9ymLBu?= =?iso-8859-1?q?C+PRDueFa6+RfFobg8spD0Ye7j7ggHtpe8JVmjmsNlBJAAikK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nkLVZ3hqv4+L8DwWukqsUIRqwgLHitqq2RvQ5DhYTmxYQM2gbsw7JoDvV/?= =?iso-8859-1?q?+BBnSijUSHNRGXfJS3W0PX1vaJBgidiCEUotUqzS+2dM32xqdBaX/VddeXIs?= =?iso-8859-1?q?xnnb3TFYSKmERg5lNCspFj1mE7dCrvGfZyBai0bSQqnk9KTkmtyISeUf34sU?= =?iso-8859-1?q?s?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR10MB3011.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0021da90-3b3b-45e0-e3b4-08d9879fc270 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 01:30:48.0284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hC/NHZfMnMxpuuzy3AjmWOYj7cZC0Tw/ibCG22J8YqItEF6JEKKlnGaEWtyUBweSx5ngHSxZLP/6YIL796zOQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5044 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10127 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110050007 X-Proofpoint-ORIG-GUID: -ggmDeG0IGUrcWjpFC8maeKrTmZcsgKA X-Proofpoint-GUID: -ggmDeG0IGUrcWjpFC8maeKrTmZcsgKA X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 2DB76D000976 X-Stat-Signature: 4jy1nx7b3iuwxqy9cykrsasrebnxyxd1 Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b="mwhsKzO/"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="U8cQQlo/"; spf=none (imf15.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.165.32) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com X-HE-Tag: 1633397486-172266 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Introducing the Maple Tree
|
expand
|
diff --git a/arch/powerpc/mm/book3s32/tlb.c b/arch/powerpc/mm/book3s32/tlb.c index 19f0ef950d77..2c8b991de8e8 100644 --- a/arch/powerpc/mm/book3s32/tlb.c +++ b/arch/powerpc/mm/book3s32/tlb.c @@ -81,6 +81,7 @@ EXPORT_SYMBOL(hash__flush_range); void hash__flush_tlb_mm(struct mm_struct *mm) { struct vm_area_struct *mp; + MA_STATE(mas, &mm->mm_mt, 0, 0); /* * It is safe to go down the mm's list of vmas when called @@ -88,8 +89,10 @@ void hash__flush_tlb_mm(struct mm_struct *mm) * unmap_region or exit_mmap, but not from vmtruncate on SMP - * but it seems dup_mmap is the only SMP case which gets here. */ - for (mp = mm->mmap; mp != NULL; mp = mp->vm_next) + rcu_read_lock(); + mas_for_each(&mas, mp, ULONG_MAX) hash__flush_range(mp->vm_mm, mp->vm_start, mp->vm_end); + rcu_read_unlock(); } EXPORT_SYMBOL(hash__flush_tlb_mm);