From patchwork Wed Jul 19 12:18:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Popple X-Patchwork-Id: 13318883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEE99C001B0 for ; Wed, 19 Jul 2023 12:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Yj2hC92lImfUCb/FmRjAfMmluUDvnguPQ2jkabRy+94=; b=RkZME+/Gd66s8k iiqhNqg6cXjBG2g595rNyH0lgcF8u2GjtCZlzHZbIJvU7f6bKJmpx4B+mQnnGw8qE6pS8u3RwpAKP nnsH9X4jhLvnx6rbimWsS8vic/kDTxDo+9yoW0nYP1Pps/ofPARjE9EpYpyWIB0Cs9oZ5gyHEGBWY wiXxhPhPpSwkzGgandBLOnG3uwSQYMWIrX8InnU/o5GRagDySppZXpBwHtw4jgFoZvIeqndMVYgsu funf8x+Hgclag4rv083x3oxQEFLIA15OBv2SJJSWL1GRr0qo2Fea79JaxswQRp3pg76UOENe5Iutm 1Z+GhIMGQacb0YmRYEPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM69V-007O9S-2v; Wed, 19 Jul 2023 12:19:33 +0000 Received: from mail-mw2nam12on20613.outbound.protection.outlook.com ([2a01:111:f400:fe5a::613] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM69T-007O7C-2N for linux-arm-kernel@lists.infradead.org; Wed, 19 Jul 2023 12:19:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TKMbvPwvpAweqgY/RvylKOCqKTJq0H9jmQH255iwaYeV5h2MRuIlenrEysloJY0aFgCHjB9+WRryG/w2B3+qwwMgktQmdaspmfseIwda8JCbWavwqyeMaoKAJmiOiUUEC1bJ5KVaeIx35wfYQ7kJyF2UuY9Nn9Dxh4gU5ZToepUYSLqejip7JiL4PPvZrnoQ6AkkIVfZYJPCJoch++Hlx3r/1UJIKQFMfJCQRKJzOPKubOP7iLJzB29+iO3HMAHDFCiWX6vhLT3Ao6V4k+5bfV2jdnM13knMkMtgr4WMtnw3zqN40j158mI1liXcUd4tnGzJuvoyzCMV5hKqEA4+PQ== 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=D/cCYj8Xd7PDxmlOmxc7ZGo63wZ++XgwVNU3j4KQgOc=; b=fuBoXw++8+YlmiA5oHZvxI0n23X2qrmeM6wFiFD4XWRA4W2WloMkZvHgJA06MOGwiT8GqniE8dpSEnDf8hdBECjC7aYeYJ9rLqBIZC++E8KWgS7G7u2uMyaP0sGz5mT9mVguX3zYUS391bW6Gdw11f038MGz2rTJqRpPSyWa4nNmWnvVR/k4NfTuvHZDAWJ0+EpmZ+A2x349skJ05UBWIua/8mNc+4plolSf2bzNCf48yDtwhG4BgvIhqfhzUGiWoC/s8IOHCmPXmgQav9YHhiPA9ZZUeQ9BqD8S1QTst32LLWgZ+cJxmG8mAAOq6EWuyJHq9UnPdqXhFJ3//xuuCg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D/cCYj8Xd7PDxmlOmxc7ZGo63wZ++XgwVNU3j4KQgOc=; b=ES6Mv60EaoeNnd2UXqJedDKsKRF5QyUWHkcwW5VbVt3i7RCs9zJZlyNlXmX2phyMUSn9wGM6n1jUrn9Xwmli/fX01cfgereLIxFi8vGS1/c/41DDQp71sQiestpW+a7ilYHfSER7FeEZY+wMdNPuFosvT5uKKf1jUaUmSf7kGAN5QBIiWC9g+8UrU9rw0C2qYGtY1TjfOQ/He5oMQYkTH+WuppbPk3+nbjWZdm6YfPBP93N7YkD8AQ3X0lrIyk8iUEzBX+iylirkIf6EwZwCgVrVoWOtD5oqqL1CvbeGU+QkAvlDos5lvVoFGLh7nOv/WynWNvKgaTEPJ+wv+cqRWQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB3176.namprd12.prod.outlook.com (2603:10b6:a03:134::26) by DM4PR12MB5359.namprd12.prod.outlook.com (2603:10b6:5:39e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.33; Wed, 19 Jul 2023 12:19:25 +0000 Received: from BYAPR12MB3176.namprd12.prod.outlook.com ([fe80::cd5e:7e33:c2c9:fb74]) by BYAPR12MB3176.namprd12.prod.outlook.com ([fe80::cd5e:7e33:c2c9:fb74%7]) with mapi id 15.20.6588.031; Wed, 19 Jul 2023 12:19:25 +0000 From: Alistair Popple To: akpm@linux-foundation.org Cc: ajd@linux.ibm.com, catalin.marinas@arm.com, fbarrat@linux.ibm.com, iommu@lists.linux.dev, jgg@ziepe.ca, jhubbard@nvidia.com, kevin.tian@intel.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, nicolinc@nvidia.com, npiggin@gmail.com, robin.murphy@arm.com, seanjc@google.com, will@kernel.org, x86@kernel.org, zhi.wang.linux@gmail.com, Alistair Popple Subject: [PATCH v2 2/5] mmu_notifiers: Fixup comment in mmu_interval_read_begin() Date: Wed, 19 Jul 2023 22:18:43 +1000 Message-Id: <06fa82756e4d6458895962a7743cc7f162658a54.1689768831.git-series.apopple@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: X-ClientProxiedBy: SY5P282CA0038.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:206::7) To BYAPR12MB3176.namprd12.prod.outlook.com (2603:10b6:a03:134::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB3176:EE_|DM4PR12MB5359:EE_ X-MS-Office365-Filtering-Correlation-Id: 1cef8a73-7383-4906-8c12-08db88526460 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xYM3m+2pxTxkC8LtX6bSv4+1tdfbzlTasnOCGRndjzlB2STFoCc3lyTs2+ekxgOm6TytWhcZqaJOdsD3kJeTxIyW4uHgqS7VD7vpet+2uczCLvZqjCT4QS3IPbokBVoKmuNC2gI4ZJoIxztSLxCFW9QacCuX6n5iDFumGswI0vcOZusc3UbiQfK5Y89s5vjy++1E+/ktjZb6F483lQhJyNYxYfRS054TB7qRaa9J8cdzrCeRD12CrF652YcGVDJbvkJSRppWIC6o/zgqAtga/WIuYSCXg1yNJgwiDqr16pMDywFXrObQ5sAtNcI9RHwny0KVtKuIuoDOB3oZo7fIhJZglgaGR61IQOiBpKCx0HbnUjxyRmV8lQtlXYmsyk25QRh6wUdx83jCaKlxCJXJVrNZXdJW2/r+W+GILlwFSmpac/nYKC45L2gwaT78pw4aKQOsNEyc1/ULVG3DxUTX0V+zOhY579qp+p2vkp5jOO27kLZArBdIo/14ZHoGdxaG0DeR2+vKNWxyo1Y7JVs7SNmyjZ5+4YQOgnbPpWSwU/Ip39KKc7brGGw/sjPF6kJX X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB3176.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(376002)(366004)(136003)(346002)(451199021)(26005)(5660300002)(8936002)(478600001)(8676002)(6506007)(83380400001)(2616005)(107886003)(2906002)(6512007)(38100700002)(316002)(186003)(7416002)(66946007)(66476007)(66556008)(6666004)(6916009)(4326008)(6486002)(86362001)(36756003)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: I8Hp/XEt1php+k0PQt8VT07oZc/s69qy3zImfldRciLIoGjCKG/xIEnCP9UNmmn0WSw9gDx6uZomtAGZpPP1qCYRA1GZSo6i5UHujo8VDqNbFcSnm5N8ZU+Y1JE9+30sW8w0y8GZ0xxkwhI6u6jPGK6+gNvLzqQjJ8GfIIMKZMWsEYubErwpWi/6iBd77F9NYL9hPxzvfJmOZejAH4thW2wGyLZvCAz85aKcH07CYWbfN+FArp469VbccRU6i2bMUfA1pxITOh/o/31YqzeYzTNskRweJVtEJv45WHGHLIeCkeIRj/Fyvy+4lHwQ4aSjMpc74woH6N9CZULd3P533Gf5a79HOz7lgldCDHNjPs8ZAhWvwqNVgbFRtx3ojhAP6CTtv+3bsvhQP2uaisgO1pesvHqeXHNEi4GW5u2EbN4L5e1G8IeYahLhTz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/WffUnYAXBl4onp6Vo+9XR252HlR6MdBcluv1AG0gIYlu/wSyQUJmnnkICDsPwQHwaQo1 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cef8a73-7383-4906-8c12-08db88526460 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3176.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2023 12:19:25.7060 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gwgSOklKX1mT7jpeoxQbtLqLIWiAzXuIO60vK6dEAeLZ57Hm/zrJM1sUAr4Gcgw9dwzjM6+vKuwzBF2wz6YABw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5359 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230719_051931_776091_83FEB9D7 X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The comment in mmu_interval_read_begin() refers to a function that doesn't exist and uses the wrong call-back name. The op for mmu interval notifiers is mmu_interval_notifier_ops->invalidate() so fix the comment up to reflect that. Signed-off-by: Alistair Popple --- mm/mmu_notifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 50c0dde..b7ad155 100644 --- a/mm/mmu_notifier.c +++ b/mm/mmu_notifier.c @@ -199,7 +199,7 @@ mmu_interval_read_begin(struct mmu_interval_notifier *interval_sub) * invalidate_start/end and is colliding. * * The locking looks broadly like this: - * mn_tree_invalidate_start(): mmu_interval_read_begin(): + * mn_itree_inv_start(): mmu_interval_read_begin(): * spin_lock * seq = READ_ONCE(interval_sub->invalidate_seq); * seq == subs->invalidate_seq @@ -207,7 +207,7 @@ mmu_interval_read_begin(struct mmu_interval_notifier *interval_sub) * spin_lock * seq = ++subscriptions->invalidate_seq * spin_unlock - * op->invalidate_range(): + * op->invalidate(): * user_lock * mmu_interval_set_seq() * interval_sub->invalidate_seq = seq