Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1492194rbb; Mon, 26 Feb 2024 10:56:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6PxW3ysb4yVCG467qZM5A1xXG+CNDb6KDP1lQI6K7hCPugVKKHWMihGg4IQM7cJFBle/12ae5K5nfIuBO2gic+T3VVomn/vaNgSjsjQ== X-Google-Smtp-Source: AGHT+IEoaAMcHOTKzXcLBlmUdCMusQ9ssGcHFRfIIjfthO93xEc7CjeXRDYnuofoEbUc1oqDR03l X-Received: by 2002:a05:6a20:d391:b0:1a0:e4ac:9c7a with SMTP id iq17-20020a056a20d39100b001a0e4ac9c7amr48955pzb.1.1708973794177; Mon, 26 Feb 2024 10:56:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708973794; cv=pass; d=google.com; s=arc-20160816; b=WQgDcNZrk6TM0UC1J8fyhHOddP4lugEiUQYqYAMrTnxUGXJuzOekP9BWDxkUgYfEZ1 Lj61zc0tfMnTKFlJHh0tKiSagLz3qA2jjmA36zPrICDfCJHifXZyfrLcVbIxeNRToceI S8wlUqQWfGJ8tSEgeAiPPYILKTISl4H/1sEWdsFy49zJvvGS4Wm3cgvify5ZSTjXcAfi adV9UBkDMZXnIZOeHgS5euVUlu1vohfb8SupRX5okKrS4KuyYehWZu5mg4xPBq/sI6Di xZqG1fxHZRe9rjPdhpo6u5Dls4RvbUmQG0M8AXOi3K8GHyHRN5breOEPToXK0JDWqOGT QkCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HGReLw4WlVv2cQpdtxdaba5f6Pv+pEYEhBOtBUc+Eb8=; fh=hulqvfvJDdayE+UsorVzVX1zuDBLA8daGS5f3ZhxCFQ=; b=tMorbYyom1jU3RarTtFiEqBcZR51m8ZQsME6b7lnQLGz5PbPrbnhFn5NsUiVSbOKVe oaxob+lJrV10zRj4ifvAF4l0zAYMBZ0k1ynDw8Q18nfx7xOtzatOXJUQCgzJ4FvYuK9V kxxPwQuwnFp/kjqbWpZFvFlDDK2wvIvVzSX/3ejkLsM7yujZCyC6As4R/7c4frvMFWlf g8CT2FILYYUz5QHZwG9l7D3oeCIpLNHgIAy3eFKbpm3dM6+rfglX8Dkg8Z4ZveMgJyBK 6raeAhsIjUXKV7NHH9aQtNZO1allliTWCxb5vPXWSPXxMuoYYiiC76ZBgcQf6ojv5ept GN6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=odhHk28u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-82168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i22-20020a635416000000b005dc4a7c2325si4000741pgb.824.2024.02.26.10.56.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 10:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=odhHk28u; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-82168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 207D928E62A for ; Mon, 26 Feb 2024 18:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDE7E12F395; Mon, 26 Feb 2024 18:56:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="odhHk28u" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BF791E866; Mon, 26 Feb 2024 18:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708973788; cv=none; b=X+ufXOZUgc86U55sMo0zr27t6STB6cy7hVa2iJ1ViDkUJJ141f1i4fSGVE0hAYuHqBuzqirAgNmIPr/wx3DFLetwJfnTf4GDbyOaMy6btfz1XQClp2K8M0GpDsDlwW6zAbZAB6q3Ae1OTNupf4uSPevk8tYeakCGo1xjwh7XOvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708973788; c=relaxed/simple; bh=4/ht9cg/8jPdSwNdZpj18Zq8GSZsf6eqVmgNBZwyisU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qrB1A0iM71UkcxVYpDtRT+/rJIARaoLCPJde7JTKZZquk87NMMiNu7qcLFJPsQ77ho7BXqskOw6nnnKirUinlist9dK2dCf91/gtrk4lkQfhpaffgGMy9n4NoAOIQeAJ7SD1XmTZXF19eQGHm56Aqku+hptZP7xwdZyxQXfkwmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=odhHk28u; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 976FEC433F1; Mon, 26 Feb 2024 18:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708973787; bh=4/ht9cg/8jPdSwNdZpj18Zq8GSZsf6eqVmgNBZwyisU=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=odhHk28uPnYzLH5s4vt8muhzUtrBhljzUsbhTVOkGAZzNceCATjyVG/aMJ2muuzEd rmYCrjQEZM9ThaOcn3DbicwC7RuZ94tSyiyuFfaGLFTuALZ7Db2mEqcfDYXHbdb3zx EIaXyH+zfQYhjeG3c468kjOHjCFCsge/6nsA7BsAa7rih+lgi7ONbu+1pS+goqlejV Qx4iVyzjVbnvQwGfK0Z2E+7X3WKfeYPRNJSyAuG2jXoJEF3638nwV2RRZLN/eqyCoQ Uh5Swtn0qanspekiUtu5mudPDVqWgn9LqMVhKUVvdpxrFTwaOX7FsF7120cqZGFceB bAKmOT0QyZ12g== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3F98FCE0E27; Mon, 26 Feb 2024 10:56:27 -0800 (PST) Date: Mon, 26 Feb 2024 10:56:27 -0800 From: "Paul E. McKenney" To: Z qiang Cc: frederic@kernel.org, neeraj.upadhyay@kernel.org, joel@joelfernandes.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu-tasks: Fix the comments for tasks_rcu_exit_srcu_stall_timer Message-ID: Reply-To: paulmck@kernel.org References: <20240226032439.26359-1-qiang.zhang1211@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Feb 26, 2024 at 11:28:57AM +0800, Z qiang wrote: > > > > The synchronize_srcu() has been removed by commit("rcu-tasks: Eliminate > > deadlocks involving do_exit() and RCU tasks") in rcu_tasks_postscan. > > This commit therefore fix the comments of tasks_rcu_exit_srcu_stall_timer. > > > > Signed-off-by: Zqiang > > --- > > kernel/rcu/tasks.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h > > index 78d74c81cc24..d5319bbe8c98 100644 > > --- a/kernel/rcu/tasks.h > > +++ b/kernel/rcu/tasks.h > > @@ -150,7 +150,7 @@ static struct rcu_tasks rt_name = \ > > > > #ifdef CONFIG_TASKS_RCU > > > > -/* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */ > > +/* Report delay of scan exiting tasklist in rcu_tasks_postscan(). */ > > static void tasks_rcu_exit_srcu_stall(struct timer_list *unused); > > static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall); > > Is this timer not necessary? any thoughts? We have preemption points in the list traversals, and things like mutex contention on the do_exit() path could result in extremely long lists, so I believe we do need the timer. But what did you have in mind? Thanx, Paul > Thanks > Zqiang > > > > #endif > > -- > > 2.17.1 > >