From patchwork Fri Aug 11 16:06:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 134597 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1222764vqi; Fri, 11 Aug 2023 09:46:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBh4fZyhoY9Ymxuf/xP6MTBC39BNImUc5j45kDmpj3h4nlvlcujJsKjPdptDIZAF+L1yDn X-Received: by 2002:a17:90a:f00a:b0:267:f094:afcf with SMTP id bt10-20020a17090af00a00b00267f094afcfmr1678710pjb.12.1691772385225; Fri, 11 Aug 2023 09:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691772385; cv=none; d=google.com; s=arc-20160816; b=NRkzvXgQLbB7PsX86C/zNMdAhzrX1pmNGdCyzNidpZmfMwGaEkvuRMeHo1ZiMyUDta TVv+vev6gtRjQc1F5DVGVixVrfTAUs759d4u+M2lOiSwRKHieFoqZUWI6YfJtv9UWbo4 ZehA4dBK92HMXFLcwazkCQnfs9rLsoCpJ1w+vReNhr5/2bgPBv9idn65mPGZVJDDi+r5 dIcaSVpoEWa/jyBCWMyGSNnBaFSDhn8iL64e9q3KkRT4lYYnwkUqCQI8KD4A+9r+sykN ntnaTNWvSI8GsHdr0iKyVBSvNmIQ7LFDZRBRlmDdCva+seH1nYARwsxZIFyPXmelnO6P oYCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:ui-outboundreport :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=K4CnQ8UJvR7QCKMIwjNfKcRTgKH09TKZifVzmHQt1sE=; fh=UNYauBv/+7ol2hSHFobbOKTy/gvRyohGcZ7+vnlssyw=; b=Pxb0a/mQUXw2pToXE3KzMGaf9B+a9uyd9Il8Cb2barhqj217EnC0vJTkPXH9xczd6N esa550/X7q4HobC5wrx9e281ZO8Dt3NbilCIOLk79PK0dDD0evhGPwSpkkTHcLX7AvAR Efh1/sL3OcCaetV4GSFUE4/QWVfjBxKcWcJ3meCikP50E+6OHDMJ/Yayfcl8A3IACyxN gRcG3Yy9bmIaCz7BFN68peGHFYmjt3GK3EKylotsnQjVNrtGKoyxMS46hLHigNh4dXsh 6BY3IM+/6dTQUyP995GGVDKzQJ3lklfYGMNobtCqtvcMJGQ3DFgIzQHebl2+0wk21I4w LrjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b="DB/k8079"; 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=gmx.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a17090a868400b002681599e3d6si5696416pjn.41.2023.08.11.09.46.12; Fri, 11 Aug 2023 09:46:25 -0700 (PDT) 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=@gmx.de header.s=s31663417 header.b="DB/k8079"; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234314AbjHKQGd (ORCPT + 99 others); Fri, 11 Aug 2023 12:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbjHKQGb (ORCPT ); Fri, 11 Aug 2023 12:06:31 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E51AE58; Fri, 11 Aug 2023 09:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1691769980; x=1692374780; i=deller@gmx.de; bh=bM/lxnNu93m6Yx0W4MNwa1wlMBa9CKt9oNj9d9WdiMU=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=DB/k8079UF6IJPmJiOv7LCySVPuyAtSZty4jVagS3n6XurZ17SKGoaBZMrjxnZHhpst6+9k 5tRahp4Z3UBTiOWKX+Tc1PQ1ACve075dQScNN3WUnRPMLnJbPyIXeFKZR/TkSkjs3z7HFcATp VQwHhSJ5sMCsRw4SDngebkUKylrVR5n51aR3LnSB9ZlpoyaSFDMhLZbr3/A11YMqwXfn8I6up zaoYXSpvEwFXdpJqy5IHi1nIOtWDt1fTFORAMZXGt98a2zqbAa/gntiAsRXixSqAZpHorCf9i xQGTvvlPhF5fgq3j6xbYazZRLae2c3u3aI2p/RtwGAUqku6pHHvA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from p100 ([94.134.154.87]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1Ygz-1qWPf52wDD-0032vD; Fri, 11 Aug 2023 18:06:20 +0200 Date: Fri, 11 Aug 2023 18:06:19 +0200 From: Helge Deller To: Mike Rapoport , Andrew Morton , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH] mm: Add lockdep annotation to pgdat_init_all_done_comp completer Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:MqD9tjnHfgm1cT35TMquLYoF0rtz68dGu4LVqCJ6Ts7lXGdq3mH iwboquz5neAbw11Nuv26zG9hwiyhqMgVopgeoLs2UPPDz/U8Rl+WBarNGwPEX7ZeKiv3MAE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9CE9W3T+Df6zTDTJnfsqn9l5iOdF/7UmXXuyP NUsjcJw35Rc1YCd/JqDRzCbYt4A= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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: INBOX X-GMAIL-THRID: 1773951920236840460 X-GMAIL-MSGID: 1773951920236840460 Add the missing lockdep annotation to avoid this kernel warning: smp: Brought up 1 node, 1 CPU INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use?' turning off the locking correctness validator. CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.5.0-rc5+ #683 Hardware name: 9000/785/C3700 Backtrace: [<000000004030bcd0>] show_stack+0x74/0xb0 [<000000004146c63c>] dump_stack_lvl+0x104/0x180 [<000000004146c6ec>] dump_stack+0x34/0x48 [<000000004040e5b4>] register_lock_class+0xd24/0xd30 [<000000004040c21c>] __lock_acquire.isra.0+0xb4/0xac8 [<000000004040cd60>] lock_acquire+0x130/0x298 [<000000004147095c>] _raw_spin_lock_irq+0x60/0xb8 [<0000000041474a4c>] wait_for_completion+0xa0/0x2d0 [<000000004012bf04>] page_alloc_init_late+0xf8/0x2b0 [<0000000040102b20>] kernel_init_freeable+0x464/0x7f0 [<000000004146df68>] kernel_init+0x64/0x3a8 [<0000000040302020>] ret_from_kernel_thread+0x20/0x28 Signed-off-by: Helge Deller diff --git a/mm/mm_init.c b/mm/mm_init.c index a1963c3322af..b390b4b27dad 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -2377,6 +2377,7 @@ void __init page_alloc_init_late(void) int nid; #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT + init_completion(&pgdat_init_all_done_comp); /* There will be num_node_state(N_MEMORY) threads */ atomic_set(&pgdat_init_n_undone, num_node_state(N_MEMORY));