From patchwork Tue Nov 29 16:44:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 27351 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp449843wrr; Tue, 29 Nov 2022 08:47:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf698fcPh/gRYXIjNtQH7gfxuWQw34mLndVxshuaCoI63NUu9wXqHQPakvvgRyIkKOIQR6m7 X-Received: by 2002:a17:906:6149:b0:78d:a154:ae with SMTP id p9-20020a170906614900b0078da15400aemr33318057ejl.259.1669740427596; Tue, 29 Nov 2022 08:47:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669740427; cv=pass; d=google.com; s=arc-20160816; b=uLQD6P7iDDR+egrwfOvNMfS16zJbBjnyh32q7RYGiRq+9ZE9x1KGJARAeRewYttu9I HJHsvV6hucu/kz+bQzMOLcdcwnRn04W1Wf6LMmB5NH5ryBVv93H70y2s8bek236iye0V HLRoQQPZe0AtlJLrO7U5630rQ/D09SCZvsRC9CTC+rZ/UtLTPajsx3fkjo7rb4R3XNbi kqivi4udzm8m017dW6pqsNrvGKY1HM2KrqoiGHc5r/sYpsW3t5kOfTHbBuvehzjIMHyG HFjF4OZ25tbYj5LQ29Qzu4YPb1RgFQEHGVqTn2rLOIlPIg5QLmqVxW1IWkl5zSd83IvZ I23Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-signature; bh=uSweNQ5DK3Nmh4aAYiVtOYJ5qY4vzSTfB3J5vg25+g4=; b=nhiQGgI9DuEuPHhxb0ka3B2yUxdsJNJ146ZwQEKTd//xc4TdA7gYkwvfi4uN4jtpd/ JNpp3Kzhz8SlUOSrAbmionCNVPVXBqN0P6SWp/d1+C1QVEVcGaDKLDU4xqYR5TGBV8th GJO+68vgMBQLE2pXEukU2NfNfCzUewoQsigOm/sqb3dEduWEQYEv/LYZld3Q8Sx9hpKh EqIXmx4ShifNkSftCMQV1MdGKbl5VRYcm5n1xw2BRWD64TM+k8hSD84u+gvdaxNW+mJp psFvyLbcbdP96F3oRgEtDeTvOikNy1+NJu0J6rPeSBA7pfRD2KelZRXQBt7Il/lqCPGi T4jw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=ojHYmhnd; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="v+yj5/Hj"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go30-20020a1709070d9e00b007891fd9179bsi15124117ejc.150.2022.11.29.08.46.42; Tue, 29 Nov 2022 08:47:07 -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=@oracle.com header.s=corp-2022-7-12 header.b=ojHYmhnd; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="v+yj5/Hj"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236102AbiK2Qpv (ORCPT + 99 others); Tue, 29 Nov 2022 11:45:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236016AbiK2Qom (ORCPT ); Tue, 29 Nov 2022 11:44:42 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2E35E3C6 for ; Tue, 29 Nov 2022 08:44:40 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ATGP14g031318; Tue, 29 Nov 2022 16:44:34 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-2022-7-12; bh=uSweNQ5DK3Nmh4aAYiVtOYJ5qY4vzSTfB3J5vg25+g4=; b=ojHYmhnd9IFUv7lsVT0cDNd00i4yvcvE/BANR2F+zcBZSMYpzpacCoPejo96wZHBgzWU ZD4tlPo+sNg3W+o7nEgip62HKyAZb8z8LoF1YEGxXYgb5bn2wTZc7d2Uwdt/jtRrQJsn K0ScTCIYJgkJUaTL0/evsso7qw4nUTJkEqxXOLa65CvoOC8UBNxzU57igMJ1NUIyeIru ewBTjxx2vtx65NQVFKCnxg3158nR2DKtVQAl5Vq7Tsq9b9lUEy/whvpuirKBN1FCNy1k Pn1HRnYZTjyufanovVx9BPyzz7/WIMYLbe45hb5t/nvCzyiKSp9oo0PYGX/mK8q+agi2 Aw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3m40y3xas9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Nov 2022 16:44:34 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2ATFhsPm027963; Tue, 29 Nov 2022 16:44:33 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3m3987f2au-9 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Nov 2022 16:44:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mdflu/4rGFC+s0A64AnGxr6obk2krdfNluYcTkdvJI/wphIDWIO+i9yQcDzyKteh7Z5gZd4fRwqCw21yJSVsLy/T9mhLGcnrcQaiRRsX5D3UtS0IFNaLYtWFXL3oKn7aLrutPH6bqTC79T+rKkyUdELmwEGV0BihOfM8/IYO0sA/jHf9diGkqNuSGZUjBXqvKw0lL90AO2VVgrKjZJel5LCqRk8S80Nm95U59oSxO0+XvJXdxF+zlp+AErvGVBii0vgYb3A35D0Eph43UESYvUnOpsnGtRqdvGMfFxn7Yc8ER5rSQ4A1b7PjQwTLF7llgYyfLsKkAD6H2YtzeNtsIw== 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=uSweNQ5DK3Nmh4aAYiVtOYJ5qY4vzSTfB3J5vg25+g4=; b=B3cBaJ36Mz3nH4JEkuP141K+KzKGXJgfkrKAGJQyoVe7FbC+c+5gUg8PH6tdtStQhf//JBsRPeVburRg2mqkYHmjDWwfxOTAbXNzHbrHfP3BRb7GLiO0pVhQgCLCf1BRCTaBsaURcJ1I3Xj/DWuI71vDtZ4x9L6mWknCWjmEt3etEbRUfKAUbY9JuJOKNGKVCjpBf4aHaaIFrNW8a8nfLlkO5aidvahFU60Ldtt6mgeJiC3AzJe6CeQTiUCOTdV4GMb9jVzdwgHAEvuJXIiPguzUlSPkWXauaMsSr75t54pUW5ZaW5fdJnYomwvjatpP5YEBS8Z/ZTPC8iPeRsTikw== 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=uSweNQ5DK3Nmh4aAYiVtOYJ5qY4vzSTfB3J5vg25+g4=; b=v+yj5/Hj2R344ukP/hpKQZI4Ie3fXBXrqL+R1Klbi1elbEZwo4HFPyqcWHdeez3PGmrnU03gxcAaynPNnHWOc67i96jktCubi3RmFEmJ8H1zvkxWrT4P0WKzVmA9+t5QPXh53CwpM72/hKmSVxuYQIRP7EGbBa4Pz9YxnwRBQwE= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by SJ0PR10MB5788.namprd10.prod.outlook.com (2603:10b6:a03:3df::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.21; Tue, 29 Nov 2022 16:44:30 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::a02:2ac8:ee3e:682]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::a02:2ac8:ee3e:682%4]) with mapi id 15.20.5857.022; Tue, 29 Nov 2022 16:44:30 +0000 From: Liam Howlett To: "maple-tree@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Andrew Morton CC: Liam Howlett , Liam Howlett Subject: [PATCH 20/43] sched: Convert to vma iterator Thread-Topic: [PATCH 20/43] sched: Convert to vma iterator Thread-Index: AQHZBBHZQOLofThL1EGav6weVWb08w== Date: Tue, 29 Nov 2022 16:44:29 +0000 Message-ID: <20221129164352.3374638-21-Liam.Howlett@oracle.com> References: <20221129164352.3374638-1-Liam.Howlett@oracle.com> In-Reply-To: <20221129164352.3374638-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.35.1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR10MB3022:EE_|SJ0PR10MB5788:EE_ x-ms-office365-filtering-correlation-id: c94f2fcb-cfa2-4db9-5d5c-08dad228fccf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OCvbzgBdXCeMU8UW3naQ3ydokMkknvLgqlkmjQGmOmLriSj5v6DmXVF2gXw/3l+pjMM3BoFb0bHgIphHHlM5vdJomEMIQZesMkvalgNDWP8afsKVg3YmkOiIsXqvoe30XPoqOGvn6IlkA7tTMppZ2CWEpflUadIonNX1ENSojJ5uFRv6Qyb4BJqW6/ZzMAxFV3sajP03QIthMYJUpTOhwQWxJks6kek/yz5ste6vLmdPKo0MA6qm3v8aVe9M6UpVCCz1zhQWeAIgLq3uBs2k+8w+HrBdWNFRRAkv8LIe3/jJsBr1fdBBtAyigOTwTVAOxY/adsXjlNsnACscYLz2rBErRg0RJsvXX5S/X1mhq6EZk7hwr1oMxV+dIHQ+nPcTJg8H0nbeFelUdfRD49U3hBZTJJrZ+UQgjqkHPWHH/Mxj7t6pd6hrsM9g14CtiQK3kNed5D4u0HSM39MZNTLZjeteUCwslVLKCazMiSWnrphgJZkoDwe1nREuOeggoEPUF4oCaraiT4DJ0gqOv7jXuK9cSM0JU8MpWIm3rI/ubAnEfCM2beh8uNvMwmtZPmc51LDRY5d6ykGoOsLJzXELWN+rAASgCa6jLe+FkWI3WY+BHlpINWejKzAAEWaUFVoeHFax3iIzlxLz89RHW4T0EenHy3JlNVLZz8eba9ddTQsMz7MctMChM1V9xQS1ZgG6hkb5kaExSYYkkhqq25i2LQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(346002)(396003)(136003)(39860400002)(376002)(451199015)(2906002)(44832011)(41300700001)(76116006)(5660300002)(36756003)(54906003)(316002)(66446008)(110136005)(6486002)(91956017)(66946007)(71200400001)(4326008)(64756008)(8676002)(66556008)(8936002)(66476007)(6512007)(6506007)(26005)(2616005)(107886003)(186003)(1076003)(478600001)(38100700002)(83380400001)(38070700005)(122000001)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?eqd3QRAUNxZPTTLF8RBPhY7?= =?iso-8859-1?q?iOLLfd27kXPM9eTBpoMeCHIEBRLyUc7AbLEemaDHoDXY+/xLWaRthgbRdZlI?= =?iso-8859-1?q?S44RnfnSOf+x4skrB9QFuXSsCoEOA25F+8BS109CFtgzfno3dCZgHYCzlewB?= =?iso-8859-1?q?qTYokxNeuy/GrHucYpLoiw9s7MyecjEDFyDSITRMN5x1lhnKPa4TTQz2gSSz?= =?iso-8859-1?q?txQ5Q4L4VQQ7y9azRnhuu0Wbxy7cCyI1ON00fYSJB++AL6u6TVKY2NaC+PFF?= =?iso-8859-1?q?gwaWCGKcD/2RNL93cDmUQVOoC9BCsjJW3G8xl1sfzzQVKZmLxvOeqRIy7qdv?= =?iso-8859-1?q?VHRztRiD3V/er54HIub95xLW6n5Bu21jNmuDUvF5nujvXwHoqu6BJ4seILq2?= =?iso-8859-1?q?chzq5mz3lY1aX/63OeOwMn1ruEA4XPgdCgt/nx8HGZNUuPo/s4ciZKze6kGz?= =?iso-8859-1?q?F2gShaL6+JvTOYaxM1K0bTB7O8lKYh/rdY9l2Ohh4dO38oR4r7AJWJLXuDiA?= =?iso-8859-1?q?LTl6svyUQTDunJahDqax94Gc0RLfLbYXd2c3xTK/s0Q+gusV77lnST2xo69N?= =?iso-8859-1?q?LZ5+Xwf/1YSqwoV7Sxc9dkQ8NVGIoUV+w3tLxFZKjRBWIua3tmZrUsxoMewe?= =?iso-8859-1?q?hrlD7uIf4BF5/NDRjIYP0fPEX1CiGYC6v+tMgkUabBh8NIVq3DP+j/TVRaSk?= =?iso-8859-1?q?26Iz9ytaECv61R7ieP11fa/AGAPTWCbbaBJzAXxQIUsYcDVYViyZra/dnFOE?= =?iso-8859-1?q?I0o4lqCDOIPUS6exy7J/6Aq01/BcSVHp0DpftCURlWE3Jbvh4ilBa6bpNw88?= =?iso-8859-1?q?gWe03z+pmWNiXRqIE0i8WsfLdXgE6TT0RXOIvvFhTykWIdEuc0YaaXT4+/mZ?= =?iso-8859-1?q?lrMFD7fC7Ui5YJYzUyxDsPpVdbt75Qwr/cSq952svlYg4EuPbOJieWCnVN/W?= =?iso-8859-1?q?MaI1VG8fyY/t9UaDihOCUegycai8MP/8pkYyZO22llN3fKYbUmCfQScSDHDg?= =?iso-8859-1?q?yrpyZjQuleLe0cCMlRtH4HMTsaM2tEN/uhKUP8veGKD0jpp196Ozk9xY9Q0e?= =?iso-8859-1?q?ObEIS3F09DNHTrO4tPWGvWBEm+ww7kZjPDjtGtBJsOci6BgHvJGfhp3xprRF?= =?iso-8859-1?q?05sOeAJoNlJqjYx/hxvRTI3RRdwbY/gJjsGRMEU4ej16MYEWWDwvTkWUWvJP?= =?iso-8859-1?q?/GAiZjbf15g1y/oKY+IkPzZg+RenxeWgExhHRgAlOF5c0Mx8jmOVhfZcxXrz?= =?iso-8859-1?q?RAYaTl+ar6UC124dAsaW+VztaXo5DTKBD/qu4XohkqBtg1g9dlyXWAxindDD?= =?iso-8859-1?q?nER4C1wWjZlUwLSnzHKY1TmPSmlFS0yQ57zC7awzaCOjYn7GI5PVNo/Nl7+q?= =?iso-8859-1?q?1Jw/nn4MDb+ZRlasGmkQrfA/GmC+QsGIY7YDofiazyBc5teXStiG/zZJcTRc?= =?iso-8859-1?q?+iioWPw1/m9oNGzxJmdoquO8WWNbDGuGTZYZ3y8BaJP8qzz+9ulNNbxzk28+?= =?iso-8859-1?q?bLE6k6O1ENZLj7SlOiy8yc7izO6vLAzVfh0uE7YKRfe8uzipSHRjHlGwp4Fi?= =?iso-8859-1?q?OpyhhV8EtYD+W6ACzMKX4pk25CJBQmciDdCkTpZYKB9UbP8mTy1UuB0IKr0Q?= =?iso-8859-1?q?LNk5JwFhiTiUToC7igmquWCqEZ1lCrvkmiWjkIw=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: HK78EchnmH/CnLR5dBmjF1jt1KRHIVQngxOhexR7dVXE++ERdjKfFeV1S1igc8YOps688g8l72iSytMeRY5GL+b5i3HoPaotkvmjwHL4BM4ILmJwtvSzBjtGLmTaupweKTG4WCiKVE1sm4rkMTCOjcbFnR0Tz55e42Pawh08uY854yGaGcovXNj/687WCySLMjKC5zKJEcnj0bvmeug/zUruieDdg8jyy2KLWyYENkvnwbu0ijbq0PvN7L0gZcrb35uKf4yBHAPRAVv4BHo4FUbxpDzgwLVH3CKFI009NCle/x/pF5VdhGK8L0Aja44e5MlJ0/LoThZCr5o0tQ/mxlhPWEenLidpbsSzF4boEUZPzzfvhTZE+giu9SA/ANEEnPI4OTnVvu8B75PQIuQdWj3nV2PABSkA2/S430jt4AaHyF9YJhZLYEsVOc+KYLvLtoRN5F/t0n+KJTsTH4EOvxmLIAJwRz08FlnEZeoba4T2mpelIVL1sC8skCLZyEkR2iJlsYaDBsYN/lNauAwSQCF5Y3ARTowZ0Yy/T9fDkE6fd0RsTBaY5qxO0tx2fF4uIGlhrV+MZbix5zmzEC5PSqnokZDd2CBI0Su1xKAOlSmU+ulohTlojGwgjglW5s/QYdM/v+5ZzEbUTqYr+di8uToinHWsX4iAQhdprU0ALdGDp5JFsGgokeIozIuG0Ujh9eaoDGEAKzuV/giopCLUg3llJFHe9RRwcYu42CM6gYbnfNHuNMoYZO9eYRSi1cN2/k4GZlafhmk5Hy6eGuEw8qyCgIPMsxcZ5Z2igpsWUIeTzoWwmDIFGd1gWP3wIIQWBH9BYsmkFsi9evtXb3NPHf8BU3HK7z/QY0rjeZV5LTbeqQ69sL73NxRlnDFeY+DqYWXAFy1Of4qXaF9DJCgyxQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c94f2fcb-cfa2-4db9-5d5c-08dad228fccf X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2022 16:44:29.2539 (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: SNlNWL2/A4TSYqnMy+1NEjAbeVgf2A3ks0aNc0f2hfhMj27fPYKN8BNaU66qbLIpJ53NRUYHUHlLGTxFSgKTSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5788 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-29_11,2022-11-29_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 phishscore=0 mlxscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211290093 X-Proofpoint-GUID: wIIPLfQDvp6TiXoTrAZRW6FRwSD0XcWJ X-Proofpoint-ORIG-GUID: wIIPLfQDvp6TiXoTrAZRW6FRwSD0XcWJ X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750849738438513142?= X-GMAIL-MSGID: =?utf-8?q?1750849738438513142?= From: "Liam R. Howlett" Use the vma iterator so that the iterator can be invalidated or updated to avoid each caller doing so. Signed-off-by: Liam R. Howlett --- kernel/sched/fair.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e4a0b8bd941c..aa780a00bf4e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2926,11 +2926,11 @@ static void task_numa_work(struct callback_head *work) struct task_struct *p = current; struct mm_struct *mm = p->mm; u64 runtime = p->se.sum_exec_runtime; - MA_STATE(mas, &mm->mm_mt, 0, 0); struct vm_area_struct *vma; unsigned long start, end; unsigned long nr_pte_updates = 0; long pages, virtpages; + struct vma_iterator vmi; SCHED_WARN_ON(p != container_of(work, struct task_struct, numa_work)); @@ -2983,16 +2983,16 @@ static void task_numa_work(struct callback_head *work) if (!mmap_read_trylock(mm)) return; - mas_set(&mas, start); - vma = mas_find(&mas, ULONG_MAX); + vma_iter_init(&vmi, mm, start); + vma = vma_next(&vmi); if (!vma) { reset_ptenuma_scan(p); start = 0; - mas_set(&mas, start); - vma = mas_find(&mas, ULONG_MAX); + vma_iter_set(&vmi, start); + vma = vma_next(&vmi); } - for (; vma; vma = mas_find(&mas, ULONG_MAX)) { + do { if (!vma_migratable(vma) || !vma_policy_mof(vma) || is_vm_hugetlb_page(vma) || (vma->vm_flags & VM_MIXEDMAP)) { continue; @@ -3039,7 +3039,7 @@ static void task_numa_work(struct callback_head *work) cond_resched(); } while (end != vma->vm_end); - } + } for_each_vma(vmi, vma); out: /*