Message ID | 20211005012959.1110504-26-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 0AC2EC433EF for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 02:09:38 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2B04A611C1 for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 02:09:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2B04A611C1 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 A14DF940007; Mon, 4 Oct 2021 22:09:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C3EF6B0072; Mon, 4 Oct 2021 22:09:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 83D11940007; Mon, 4 Oct 2021 22:09:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0162.hostedemail.com [216.40.44.162]) by kanga.kvack.org (Postfix) with ESMTP id 7135A6B0071 for <linux-mm@kvack.org>; Mon, 4 Oct 2021 22:09:36 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 349CE82499A8 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 02:09:36 +0000 (UTC) X-FDA: 78660752352.19.BBDD84E Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf11.hostedemail.com (Postfix) with ESMTP id AA19BF00242E for <linux-mm@kvack.org>; Tue, 5 Oct 2021 02:09:35 +0000 (UTC) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1951BZ5g010255; Tue, 5 Oct 2021 02:09:26 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=KRk8xpjN43r76rHt5v8h+KrzzRMX3z8fvDDt+SqiRpE=; b=DA5Mlvxw2Gq9UwLBmJ7Ug69307u7DyI97434ra8OVYA6dgSJOsjSessj5wFumbFUmQl5 tVsGZSHrcFvpxN7YQNX5vijnfyxa9ZDsQwlexUqIoMht0qqVtZr0HwaN3z5iyVk31JFk C3g5deraeu7V7ecFROcXrB/1pPVkpFkmt0kyP9xHIeZib6WqhKH/pIkuSb1/rwysEx3i IzxlqvdZvVLWxUvH1qodhxfysqLYvfYKR4qySbpYv59hxnjKnfJdKOzWuCyAyYVDW42P cQ2iGNdODuS0uiMoI9+t18OfU7oLGWt8tKgaruOsjezE0F8gZD8tj4BZ1/yGi+Ttnxza FQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bg3upv8s6-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 02:09:26 +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 1951UdG8141646; Tue, 5 Oct 2021 01:30:49 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-11 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:30:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QDRLd8ScabmHsuk8FyihfNYRZvw0MwdTKluRidETdsAAAjCx38ltLL5XaatmSY9YRxE1lw5V65sJMsVZlvEVicHOpx/VGWdeefUizeT70SZyWUvZlqJ28jzsfTSD1zb4zsb49bMOJH6x72ffIfZtMn0wAuLlmil6I/T/nBB710UTAbJwpIK/puo/wMc0HdhFDTmbIHRBR+/I+pNjVxUn/ExEuD6HBUwvXi8SzgEAoPVyuNzl7a+430l9Bn+7905t8DVtk5LpvDzaVL7V41vzp31qCj3ryq1g4Y+wuGzC1GFbzqAB8efRww8syVLI4Wsn83Mxt/coSoolDZoj0gr+cA== 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=KRk8xpjN43r76rHt5v8h+KrzzRMX3z8fvDDt+SqiRpE=; b=n1G+d/1S75kXAxSRHFnr4udYjTIfSaJcO5k8HugCDuQmiaH7kHgJA8VsWRZgugu77oK+chxyJoc/qvHvGO4JfmO+PtGJ8LINGjhnd4gPHAz/bm9U1uc1Rtggj5MOSeAvNPBXtRyNfAB+L35lU/fM8pyhOJlOj4OpIgXOPg56Br9T0k0u0J+Fcz0oyDDovw1xT1s522W6U2rkcNy9XemXwggvm1zfOtB9MIvn5lGkwFt9sHMKyFMyuEL6t5DBg9rylU2wor5xQxE2KydR2NURLkzlpbhZdStA6aYFGVd16xSkmN/rGUvhlRlNymQn3XCCfg7EZH1KqFHj2bPZ3ms6gg== 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=KRk8xpjN43r76rHt5v8h+KrzzRMX3z8fvDDt+SqiRpE=; b=Dz64qoum3sL1/HrFt3Oq2zh11WNQPoW+23nkfjyKSiDObX56xOxvMsTfEbN6FWVn69Ktpm0u8D9Q7pug7fjzFQEnNZhZLfmerYv9aauwXENJXowgBMutQ94iF0rdMS7t72jaCX8dj1xWufWkbX1/mHvWLTnvM+CUj/Am6dWeABE= 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:47 +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:47 +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 25/66] arch/arm64: Remove mmap linked list from vdso. Thread-Topic: [PATCH v3 25/66] arch/arm64: Remove mmap linked list from vdso. Thread-Index: AQHXuYifvsGhPbhCnkqWBDuSj5lHeQ== Date: Tue, 5 Oct 2021 01:30:47 +0000 Message-ID: <20211005012959.1110504-26-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: 473c70eb-cccc-4927-c561-08d9879fc1f2 x-ms-traffictypediagnostic: BLAPR10MB5044: x-microsoft-antispam-prvs: <BLAPR10MB504491E73EE283C5B7A7FC7DFDAF9@BLAPR10MB5044.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:2958; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tAT27DbBT4kVcSvgYhWyV85iqiGh5Gv4Pv2wUTc8mCBNtn2DxdPidofVAmInZbDkB5FBi0YtVK+sFTi3+L2o7QD2iF6bC2Q9IszlQHJ50TnmXG0wrZJCOepkm2hnDiaDkXtmAQmwYRXXASRVkKNOgAX/2VxDfV/MZsuP4dS+LfbmUkzsztNqo896+/ZW8bFK1PwQqx/Ka4PKqGmV+DguG2oWNT5kFlHbss9WIa1GDW+Lo+y/PokAItkY4zgRzCAeGrphrXzjuakkJlUeyJ2wCK/L2dRjGgrJwd6s8dTrXIRMX5x55AJNX2SpBOLSH/FL5lTU/l7uTAtLbWLoo/LZvaPACw6MdUT2yGSSMTOn+3UuvB99h/ac2l/PNl9DPPhU5ygbIeKf2MLsd9bscwQ0UVvOafZFg92qYkpGvx7RCCND4T+bdpbdjo/Pn6zQcrBt2wRVJR4U7ZpKpdeWHz2+mPRLI0BWR34j7OHrR25qkt8CgyrOr0C3TYsuym2rn+pvGHgrGHnZOGCvHQNKldTOMHuRbJRhd/laG59q1FcAN3vJsRO2utUrqdoNiEnPPtbg3O6xwYIQGivBtzupMyG5JRSEucY1HlB/HjwoVDAVyBvda1Sr5bILtCL35kafPZX7kHxHSvXpX0qJhkcHkKgD8/8v2Pzws5wOdiDgpTUyDVgQXF5Nu21ZVCmEp0uMLJMxd3RW+zxjyzK5gu6yP1OvQQ== 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)(4744005)(6506007)(36756003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?mPwEKFJO/Zgr9G9JK8WzJ6v?= =?iso-8859-1?q?LsUEwk0rIUTYgc20VhTiTWoeSp2v2CqNt7pA4M9tmg8ZDd/H09axOCMTFJDD?= =?iso-8859-1?q?C367cOyIVu8mN6hIqrmv62XscI1P/NS/6/eogddF2KRv8WV06IzInJJWC53x?= =?iso-8859-1?q?/s6LRrM95cSP6ZGH8S/PQDUPBZJvDVVrmOjdu4x1ra7SNWhLuFjKXybXvBg3?= =?iso-8859-1?q?WKOGesNPmlEsOH0VAQCL7xqBoBzXz4hKLPOXVhMe3ao+LNK+2Vr9IckRqmzC?= =?iso-8859-1?q?Vlo/5DESRYvcuxXqTa3W/hP+VscO2Q8Fxk0/9UpAdq5i7mnvkSYRPscjn4nV?= =?iso-8859-1?q?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XUN3B+GJ1c+uVmn/yQxyxEs2vt9womqHV14B77NpTPdrEn?= =?iso-8859-1?q?MNJYBPkqwiQvv45SO9NwU2Gqp1kGkyBGepfoayuIHXRl0gXvZbJXxTQDG+y5?= =?iso-8859-1?q?2d7H0MGcPJ1J4CJDJ2J1Dw31zUqRYkwYHFOlq/HWx5ghiuw0I/dWdmmqSSgV?= =?iso-8859-1?q?0?= 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: 473c70eb-cccc-4927-c561-08d9879fc1f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 01:30:47.1599 (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: VIhQLhmNgqAvEXZwZbOW8HdiX6+nYp2beifhBRWo/oyirnkQXjIrH4hcRJRbsfTSM9ntExXsKy7pVcVlLzfXjQ== 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: nkGtizzAux7AhXoa2vzwD-iFqrEsGFPZ X-Proofpoint-GUID: nkGtizzAux7AhXoa2vzwD-iFqrEsGFPZ Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=DA5Mlvxw; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Dz64qoum; spf=none (imf11.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-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: AA19BF00242E X-Stat-Signature: hwj4grquuzk3bcng9hg5xoopgs7ur43h X-HE-Tag: 1633399775-987532 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/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index a61fc4f989b3..57ea81fbe04b 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -136,10 +136,12 @@ int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) { struct mm_struct *mm = task->mm; struct vm_area_struct *vma; + MA_STATE(mas, &mm->mm_mt, 0, 0); mmap_read_lock(mm); - for (vma = mm->mmap; vma; vma = vma->vm_next) { + rcu_read_lock(); + mas_for_each(&mas, vma, ULONG_MAX) { unsigned long size = vma->vm_end - vma->vm_start; if (vma_is_special_mapping(vma, vdso_info[VDSO_ABI_AA64].dm)) @@ -149,6 +151,7 @@ int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) zap_page_range(vma, vma->vm_start, size); #endif } + rcu_read_unlock(); mmap_read_unlock(mm); return 0;