Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3079611rdb; Tue, 6 Feb 2024 06:43:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsR5guYF+VsVJjQNvSSc7kag4AotfB/hiromsX73+VIHa1ZlSyy+K21sO/WcLAI129OPVW X-Received: by 2002:a05:6a00:98d:b0:6dd:839a:b070 with SMTP id u13-20020a056a00098d00b006dd839ab070mr3137028pfg.34.1707230611071; Tue, 06 Feb 2024 06:43:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707230611; cv=pass; d=google.com; s=arc-20160816; b=ejjQQwbRD7qfJ72freEt4+wrRGiaGg3bPcKwNjoCCz5KlAfxdGCuJ/WuVG2bbIPwUt 9RlAIgPApamhgXPTLa5QD1m82AF4a7JT9VooX9Rx86bdl4yx0NY6H5bQkbn9FRSU0jBx 2X/kn+oqD+4DeEOZJEy2f72M3UnsK+/iF3nQszZYELxDbesMH2gByfZ/kFNatyKJQpJO 2e6RwnPa+WS4Es1C3QNF/IgsvJ/M5rtpe92Ie2VcrLoXQ7tkIDyXEXuP4cgGz71Wcdt1 PmstewrtOO6oaDixlW3CUbMmOBHyxqp7e6jvyEBQeP8JDXyy0bCLxOtQ2kf4oS3yugZd TqcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TeXgpVUhUtK+8+9DPc0L6Ge+jkZ7jL6TFVQrP3F7+kQ=; fh=I8ekFVeazc+L/SBOmUcqLBdo7Lop9s7WyhFx9fcNpMY=; b=bE1moaoK5ocl50Lber1ozpYV9wKxCTuSCGAx+wzmfpj1mOnyjzQ2z2718l8lhSsC33 Q/VN4P0nXfbghEpFGA3fjZutL+SSHTiNYFDaAL2H/IpZvPoYIj30N1cMs9uxaS+eT9uw anZjpMi94IP1P/MZD1E+0YViSZIWlkdqk4CDBUCb788ju1gatCWcFoOHJ18dvnm1WzyE e0Tct8Vr5XEJTOJ1O+UwdqZJa8Xmw10bsMa+gJjV1JHIlMQamuS1Xe6aHZYGy+9jgQzT crh00TMOHpIl68RufhSMYea7NtaIraShTXI8ohnE/8uV3ZYxnWcVTqnBLGmrbwaN1fY5 ZZdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R2GnfRAX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55099-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCWnuVu8QU6bDB78wvBjjLjzPz7/toTjQSHeR3VWhxMXDOQ4Sy1Xcmg0Zt+CDEG6n73OXHoXPySAzdNgqbRQtNlZAlXXE6PLTC/Rgd+Mdw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o6-20020a056a001b4600b006dffcabdee4si1695918pfv.208.2024.02.06.06.43.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 06:43:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R2GnfRAX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55099-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BE0D1B28C8D for ; Tue, 6 Feb 2024 14:22:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCC2D13248A; Tue, 6 Feb 2024 14:21:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R2GnfRAX" 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 03DD6132464 for ; Tue, 6 Feb 2024 14:21:53 +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=1707229314; cv=none; b=C2CCG5EF2z7MLfNOJ3xre0It/G4ZbZ3UbjFasOXm/x6B60+YyGpWP9pgzjjBrwgKcWalcmIIChTyLbR+i5TOykfzTKcVmAj4NHWChmXzTleYkoj76ThOJ/jGt4wFJcQavOmiCDoGpQ0Vzz4+Zfxl6sj2bPUlptxtKeOt6PeG6jI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707229314; c=relaxed/simple; bh=RUTHevF5MwbseyZgKH+07BgbAUcplH0ajmEO4J9WH38=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bGEz0+O39o21DG3ikTvDGDMy3bYjydiu8wuBAt8YfHSu94/z+8hwp1cZoTANqJ0k1KK7KSq2s+ap6uhzm3gg/Hpw91Po96SBH2h9vw3gREyndYVBBCmcrQuj96ehTR2yfrs6VBMZ9uBPTyrhtLU/OIOJq+hG0fGyxMVIVSvdAo8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R2GnfRAX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2123AC433F1; Tue, 6 Feb 2024 14:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707229313; bh=RUTHevF5MwbseyZgKH+07BgbAUcplH0ajmEO4J9WH38=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R2GnfRAXCXIcN4LUkAN+4M+h5JAztETmCVnjqJgUI1KRW3ggf5P9x460C0qNgmaRS Xa2iu2tsRF+ovdtWOGV1RCbsd/+V30TxmFhpeZgDv3ba/0WcJ1lABqaAWzQ9nNlMq9 d5VHaR7ZvUO/T4wthV4+cfIiWQ50Bu7hfIHaMmKASzWXK6tgCBrBFk17iKVjfkE9SK gApdf3lqydNtAtYBgk0jgqQXiUNzehgW8lJwwr4vw+2DbIlpxZP1u2r6FHWLiWi9eG /INK9ZItji4XzlrarGWFRQX3p3fxPi7UvIJTUlqXeZYPQhSM4sKj6hN6Wiy1Wz0EUw XzgemrAZh4arQ== Date: Tue, 6 Feb 2024 15:21:50 +0100 From: Frederic Weisbecker To: Anna-Maria Behnsen Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , John Stultz , Thomas Gleixner , Eric Dumazet , "Rafael J . Wysocki" , Arjan van de Ven , "Paul E . McKenney" , Rik van Riel , Steven Rostedt , Sebastian Siewior , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Srinivas Pandruvada , K Prateek Nayak Subject: Re: [PATCH v10 18/20] timers: Implement the hierarchical pull model Message-ID: References: <20240115143743.27827-1-anna-maria@linutronix.de> <20240115143743.27827-19-anna-maria@linutronix.de> <87eddp3ju0.fsf@somnus> <878r3x3cl8.fsf@somnus> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878r3x3cl8.fsf@somnus> Le Tue, Feb 06, 2024 at 03:13:23PM +0100, Anna-Maria Behnsen a ?crit : > When remote is not set, and the group is not active (but it's not top > level), walk_done will be set to true. Then goto check_toplevel. There > walk_done and the groupstate migrator check is both true. But it is not > top level... and the next goto unlock will also not happen and > data->firstexp will be set. No? Bah yes of course, walk_done doesn't mean we are in the top then, you're right. > > >> > >> There is another issue in here. When the event could be ignored and it > >> is propagated because of e.g. remote timer handling, then the timerqueue > >> dance is done nevertheless. It's not a big problem (as the ignore flag > >> is set and event is removed of queue when revisting the timer queue), > >> but its obviously more work than it is required to have. > > > > Right. I guess it doesn't hurt to delete it from the timerqueue if present and > > then update group->next_expiry accordingly. But it's certainly not useful > > to requeue it :-) > > > > This would be the plan to keep the delete but drop the requeue in this > case. > > With those two things, the tmigr_update_events() wants to be changed a > little more. For the best! Thanks.