From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47116C74A5B for ; Sun, 26 Mar 2023 19:53:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbjCZTx2 (ORCPT ); Sun, 26 Mar 2023 15:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjCZTx1 (ORCPT ); Sun, 26 Mar 2023 15:53:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6BC455B6; Sun, 26 Mar 2023 12:53:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5A87660EE6; Sun, 26 Mar 2023 19:53:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E891C433EF; Sun, 26 Mar 2023 19:53:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679860405; bh=a3idF1OnzK0ta+M1kQ6BZWvXz40Iu3iKa784Cxx/8Vw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iGvz7UBSRqd/qIsq5mmxZn4YtZPz/tuq0A9ZxKUPP0P0p0nJujXJN7KIVKypgPlcv 7WaWBwM5SeD+ITD31Cvkn9zukQ7uYJ+hFJMu9TsgQNq1Fq4Sdl3u/u0elt6OGYKSMQ zFnReDgOEWMl1+HffjaydAmSGJ+lSh04I9tKK51EhpiTtC9LPkZBp7oiuBiFQBYgfH 02sCbX8kbUe1Sg5dCOEgrFsHYs9a6AdrDJrY1k3Mxl82Rp+jEEASaPNC4xuxSsF5EI s6Amus2zpXJwjNZGshyY5vy2jzOHeTLLIa4NFrmdXgIRP1urU/ztcoRzC/+o2VvbhR yJuaJTjPuyTfw== Date: Sun, 26 Mar 2023 21:53:22 +0200 From: Frederic Weisbecker To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, "Paul E. McKenney" , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Mark Brown , rcu@vger.kernel.org Subject: Re: [PATCH v2 11/13] rcu-tasks: Report stalls during synchronize_srcu() in rcu_tasks_postscan() Message-ID: References: <20230325173316.3118674-1-joel@joelfernandes.org> <20230325173316.3118674-12-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230325173316.3118674-12-joel@joelfernandes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Sat, Mar 25, 2023 at 05:33:14PM +0000, Joel Fernandes (Google) a écrit : > From: Neeraj Upadhyay > > The call to synchronize_srcu() from rcu_tasks_postscan() can be stalled > by a task getting stuck in do_exit() between that function's calls to > exit_tasks_rcu_start() and exit_tasks_rcu_finish(). To ease diagnosis > of this situation, print a stall warning message every rcu_task_stall_info > period when rcu_tasks_postscan() is stalled. > > [ paulmck: Adjust to handle CONFIG_SMP=n. ] > > Reported-by: Mark Brown > Link: https://lore.kernel.org/rcu/20230111212736.GA1062057@paulmck-ThinkPad-P17-Gen-1/ > Signed-off-by: Neeraj Upadhyay > Signed-off-by: Paul E. McKenney > Signed-off-by: Joel Fernandes (Google) Acked-by: Frederic Weisbecker