Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1735591rbb; Mon, 26 Feb 2024 22:08:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUch0Wq/jyadZ6abnk3atSeWjzVN0wJhJ94sN7cVIJDkBbp77dkEkOJW8GOUTPpPGaQ+tLGV5oR5RzTnc4JU/nXulAltY+PL30AU+1zHQ== X-Google-Smtp-Source: AGHT+IGYuw0tBOJsyhVxiIU+yEwecL4cxYkUDQbOR+OqDre5Go2rXq8omwvZ+69zQVfL3/cvUkQf X-Received: by 2002:a05:690c:80a:b0:608:c8c3:ab7b with SMTP id bx10-20020a05690c080a00b00608c8c3ab7bmr1240214ywb.23.1709014099990; Mon, 26 Feb 2024 22:08:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709014099; cv=pass; d=google.com; s=arc-20160816; b=E+2+TszLh0LiU2x+/nmRL8sijnBfvXAxIZstEPNMQrIp6ANVjOgxLteJ8fEvzu/Szy /OZYqmPLpQHZLnUphsk1gclLwUKdTFImMET/mqsFchLrvWCGABX/D4nM4Jzr4FioauNv ScIJcmc6HUpEBz+cOiChUxScalNnrowvUj3r19gTDeSeyzKzmQSQqG/LoUilrX5TvkoI xYNfAaBWSlGuxpnShBgAAKC3R8kESX8lx6yA8CoC0x0RTfyT0TrhxvZ3L53p8xnaaMrp o7yegZY8qAR1uKFm6Jx1dEwTQi04QoM//6dd+vrbL/2c7EbXJrDypxrOoipKHvKz7jPG FCMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=G7jNaNu3KQ3lMgFqItSxvaLHpUG6FQQfqYbQAo7X+vY=; fh=q4vXKw844nVkYCZ25GeG4GnwML6H0b1ItuuTfYyW3XU=; b=z1156/cwUfKWXtYVNsGZgk5q0CjGSfO0ft/OOCoeyugC2tRKy2HKzuSB2MgbvH5EGr NZcaZhAMLOiGd6W+ZVeQlkgV7GvBZmoUel662wBEy/Vj7x9h80rh3+KZN8Jeb+GGvXK6 lm48TziBAEqojJnq2VD59fiE/BbrNwttsuuht6y1Anb+egsh72unXE5kL6cbF0GwISre qh4mX7k7tv+4qRC+VYURlMBUFh4vlMchTWxZviBQl0ui5p9QlfB2dZXfPxx8KzkUSpL5 ND2PuKMu3O/zqe2+WjA7VD5UQzoi8NIQUII9vqVPPLhBABiASAiPSwjGNil/0ZssDWq8 gzBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nGr12HtJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-82735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a18-20020ac85b92000000b0042e7fd5b82csi4891458qta.397.2024.02.26.22.08.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 22:08:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nGr12HtJ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-82735-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BB18B1C21E75 for ; Tue, 27 Feb 2024 06:08:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80A7E535AE; Tue, 27 Feb 2024 06:08:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nGr12HtJ" Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F4A4535A0; Tue, 27 Feb 2024 06:08:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709014093; cv=none; b=FCMywgxmozF8ODVjLbBGL2+YAAQnJ0RlpIrBH7uYjPTXhYvQ5XIWYkJu0vZJ2e6/iYahycun4EYcAmULhUdJ2JlFvDSCPOqvVtQn/NtdzoC6XCvdEsIST6ermFPoLWxDtJM+Pr5a7lkZLPq9d5+xr8M5LpjPNwSP+GIZ4so7jMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709014093; c=relaxed/simple; bh=9qCOs1IBx6ELRDSNmZ3P9R6G4riYikUgqkqb3BP9i5A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=WB900NWiFaNPZmFwkFNRDogFg2BIp5MAiCv10OlY6nYkHTAtVLOkx2ZfuxWQ9SsqrJlgivE+Vo66t3Y+QnVX9nmeHcTa3xJkPTc12HgWrSKE9J2I5rBh4BkIREPiW29iK7KKKV9Es2pbzdcheyxVHtF0JvCVK52ZKXLSOHb8Ar0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nGr12HtJ; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so3342561a12.1; Mon, 26 Feb 2024 22:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709014091; x=1709618891; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G7jNaNu3KQ3lMgFqItSxvaLHpUG6FQQfqYbQAo7X+vY=; b=nGr12HtJuDKz5WH0ShCMwqrirUFEChiRQKO6gOpoLjnidHIZDUlpW/wZqyIWbHBpDA ssMD3A1JsrvmVl+EY2pyOjbYa5mZG9hnUu9brD0XxDC75bNP50TtnMlHPqqrkMcLMk16 +VW4j8jd5q/E3i3iFcVGT7Ew7FkzpM4ie9JkZvlS7q15HmqTHVUnGfp9S6TH0jH1WJA0 /hjNYQyTjNh9g7WD1aNvj7Kz3IGd7DSS7N7DP2JS7vZ8kQFNNhXCqU7BB+CTYRk14Qpj UUo8CQC6J0XDtn9vfdERdDAEf+/PGHZ6hfLK27bcsxDDuHPltDGgvUZ4+XHU1g9qFzcL dqyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709014091; x=1709618891; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G7jNaNu3KQ3lMgFqItSxvaLHpUG6FQQfqYbQAo7X+vY=; b=UfrPmnAthiLucS9VstKrXdYDWtU64FGrklANFZvE6Ag02sIFR6oCxDajhk34IoNxi5 Bz10WlBmZwyNifRV5CYQ9WCdEwZGoPvxlz7eO/iCbjHmYkf86/jGqlI268ZDYGs5FVCQ BTfZwu0bd2G11gCb3dKXHDkWVbY+Z3TVDauN3PQW4HE05IvkBhknSap8ErJgc6du0jwI jbUOjl/Dk38uuYbNAySpPeX1f2BVskoBWeFRLssZE9ozFN5q/pKwzS4UC66fCCcQKASc tJH+7dnnxenMlnNgzQemUjBXMd8hU+C9QTuN+DeK2KN2AvY/TsdrWPUa5BWteD7xEo7p dQQw== X-Forwarded-Encrypted: i=1; AJvYcCU8HYvaSFjej1cfF59c06swtrLHJNtyLKIM7c3FENTH6X+G2CVr9IxxBJlUpdRxbiGK+i19hyOCsQkh8GchvM/kJGvjYur4WvBZBWwV+/HOjvWQIbJW047la3FK7F6QDIqd X-Gm-Message-State: AOJu0YwqsV/X4RCaJUDOPLY04HDLn1yhg4DnDWuqPJ0+7xHSbgxFVIsL I3ovb4w1AHTwE8cvBd0RqpvvClp9qioZl0nzN2VO2WSwqxs8dY5gYoekxd/pGBnPiuIS2dlhKJ+ Ue08fkrNuW37Z1VgL0BLA9eWKW/JRJlGfw70= X-Received: by 2002:a05:6a20:d805:b0:19e:9adc:b274 with SMTP id iv5-20020a056a20d80500b0019e9adcb274mr1418017pzb.41.1709014091592; Mon, 26 Feb 2024 22:08:11 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240226032439.26359-1-qiang.zhang1211@gmail.com> In-Reply-To: From: Z qiang Date: Tue, 27 Feb 2024 14:08:00 +0800 Message-ID: Subject: Re: [PATCH] rcu-tasks: Fix the comments for tasks_rcu_exit_srcu_stall_timer To: paulmck@kernel.org Cc: frederic@kernel.org, neeraj.upadhyay@kernel.org, joel@joelfernandes.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" > > 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? Thanks for the explanation, I ignored the scenario where the lists might be very long :) Thanks Zqiang > > Thanx, Paul > > > Thanks > > Zqiang > > > > > > > #endif > > > -- > > > 2.17.1 > > >