Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp481479rdb; Tue, 5 Dec 2023 10:29:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBNRxowBkJBXniaZkwoYM14gC4+MVYV/lwdYWs8X2HK4IH6gxGy5a4hiV1ysZb5+Ovu2Ex X-Received: by 2002:a17:90a:e018:b0:286:6cc0:caeb with SMTP id u24-20020a17090ae01800b002866cc0caebmr1496236pjy.98.1701800975013; Tue, 05 Dec 2023 10:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701800975; cv=none; d=google.com; s=arc-20160816; b=RQYO7TaSdHsDQsd0aYXJYZYopbEhJ1guQ/vbEPSINUggPRj+92mPEUkU7f5KXgaEJo 6ocxD0HI+ZlWix694I28JIfe5w1GBJjrq0G0NZSGWrxu5AjDG4KzkJ2He4D+lAe0SWuf lPxwZ9BykHfGwTLUda/DOj+0gNHzuLGaLKxzk1m9ATWjeAX+fQgMmTM0o8uL88hR+For +CurmVcywl4REB48h3frYMwQcLWVWZliLjoO03VzM9XlEyUfDF+cox8okSDZCwS/Yh2f BsNPTL0eYNc/JiRiVaMRqVE62w+pqGWyovY1TDsMTGSY+g6qMUl282YRQZz7hhmvOWtG 7czw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=q+ROuSujUk/tPri8un5u3/M8TC4emax/F2/1hCSNTUM=; fh=5cMh8CKYPGN1F0fzuaj1xrlN5+dBfa6bPK4XIprQ5s0=; b=vhw4QZqDnqjqOz119SHxolsiSANTujoyqjf3x1Fu4dSJK3+qBgAlbTc4DxYfFRdAqt b0YX5raO9cD7EuhhQTxNzZL1PHA/IUoUj65TVBsj7+bj/XRmOuQs0G5M4mQdNTb0OZXT 0wBqX+NF8fis0TMejRtf9kHDefFSfVTnuQpvBbTjQUTut0WwcKKCATd8sBrSvvRtVsdn 23wvcaq2Df3pRDL1Q2ChJ/L8LncGuCNYcmCsJtz0qQ6jkhAg17KxDjfCLPgU5hJH865X b7rz1vCMfmupLfiJh0aFHZ9FDfOdruwfIM/dV0FK8S71krc05inzQ241poRnRBt5orwP TIwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SSYp71gH; dkim=neutral (no key) header.i=@linutronix.de header.b=PaJmUhoI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ep13-20020a17090ae64d00b002865160d522si8578007pjb.115.2023.12.05.10.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 10:29:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SSYp71gH; dkim=neutral (no key) header.i=@linutronix.de header.b=PaJmUhoI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ADF6780309CA; Tue, 5 Dec 2023 10:29:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235702AbjLES3W (ORCPT + 99 others); Tue, 5 Dec 2023 13:29:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjLES3U (ORCPT ); Tue, 5 Dec 2023 13:29:20 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44305D43 for ; Tue, 5 Dec 2023 10:29:27 -0800 (PST) Date: Tue, 5 Dec 2023 19:29:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701800965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q+ROuSujUk/tPri8un5u3/M8TC4emax/F2/1hCSNTUM=; b=SSYp71gHAv8EGD6zdebeGV7Lh89cV/Nk8GPPODHfjBQXUCt+Zc+sDOzZEhHSp/f/FpmHs6 o8ITlgx2yeaUrGgphbl/zJTo8Q31M9htc53SsteXq8uy5pLbY4h8cdwWptQAYHFyoZvZm4 C1HA5ByrAby6NdXwYjyWNje7nPJDWeiK0Rmlv8Yq3VkY14XkNy3IZaC86jBMsEcEcbwKdF yBY/A6VuVLBSPwmuINo+9CtkQcpDgq0o7GeqOesqJersklmbp5nofaG6t27Dk2rzwNMAFF oOoZYTN6S61anXN/kJcPGjBWXdua6PGji0cw14M8M1sBstdJZC0yttWfRDyz2g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701800965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=q+ROuSujUk/tPri8un5u3/M8TC4emax/F2/1hCSNTUM=; b=PaJmUhoI6K56KvqAeYMmaqsmT+yuSP6Y+G1Q7SPG993zoUoCwOOh4QcldNkB5hVTGW1kmG phYXQvKemUJucxDA== From: Sebastian Siewior 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" , Frederic Weisbecker , Rik van Riel , Steven Rostedt , Giovanni Gherdovich , Lukasz Luba , "Gautham R . Shenoy" , Srinivas Pandruvada , K Prateek Nayak Subject: Re: [PATCH v9 19/32] timers: add_timer_on(): Make sure TIMER_PINNED flag is set Message-ID: <20231205182924.SFCmSKXe@linutronix.de> References: <20231201092654.34614-1-anna-maria@linutronix.de> <20231201092654.34614-20-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20231201092654.34614-20-anna-maria@linutronix.de> X-TUID: pj+LAvNjV8hx X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 10:29:33 -0800 (PST) On 2023-12-01 10:26:41 [+0100], Anna-Maria Behnsen wrote: > When adding a timer to the timer wheel using add_timer_on(), it is an > implicitly pinned timer. With the timer pull at expiry time model in plac= e, > TIMER_PINNED flag is required to make sure timers end up in proper base. >=20 > Add TIMER_PINNED flag unconditionally when add_timer_on() is executed. This is odd. I have some vague memory that this was already the case. Otherwise all add_timer_on() users without TIMER_PINNED may get it wrong due to optimisation. Looking at git history it was never the case and I can't confuse it with hrtimer since it never supported the "_on()" feature=E2=80=A6 At least the mix timer in drivers/char/random.c is not using the PINNED flag with _on(). So this was wrong then?=E2=80=A6 Sebastian