Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4914178rwb; Mon, 21 Nov 2022 13:47:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf68089rRt39+65JHReCt5EB6mjf6GGcQH3JqTYJSmTv10cwB47YcYH6ToJHNeOJfSbnIa6G X-Received: by 2002:a17:907:8dcc:b0:7b2:b5aa:f1e0 with SMTP id tg12-20020a1709078dcc00b007b2b5aaf1e0mr4591813ejc.54.1669067260598; Mon, 21 Nov 2022 13:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669067260; cv=none; d=google.com; s=arc-20160816; b=EoTGIPIXwEgTAziiSUdbzqRs3N6GbrvdL1SgG8DHugp9niPO8cSvQjLN80QVoiJjNT RD36yINt602cZNSUYFaoisGYtjAifTDF2wC0g0ZWYNlw+PDOjRyOgtc6rG9ZGmmmfYp5 7RXtB0itgywyLoAx0+UcTdAnlwmVEHHLIX0O1dBBXyJX1mwX393eUIOLQ9LCq1sKMSwH 4rpdXZKKL0rYyaj0dC5eYAuTZ3OVENEQbzMPnpXSvH0me22gTt0AqO/c1ml3oaj+5/zL 5aCLxMM+y2WB4pHVp1W7SsblN9ul/JR/Vt+cGeD27t6gfj+QlDz4YCuUTPkDk7bmpSZZ zcfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=25pWSq2e0C2TXCLukHvs6vCqh5MLBCLUpnDn0otJ9KE=; b=xAK5ROGxirgpscNCNf1gP30JG8QK8K+HEiFwa/28Vi6RGpjSUxxnuJ5ougD6VTtkL/ VhP8NeDNQh3lXPWBJea5QJgtXIsruxEQfxPuzRZemaC0Rk+wIrUPL7ZA3QlYl8oC6gj1 xNbVctxO254Swq4PmX34/7OBJUiXDSZLP8MJonFlEhRtTUc7m+BMIxdRK1pbB68zSVIg Viqu/l8fkx8qvMDKWLC1rEktYN07dVLZmdobex1R6r94wax9y5noL2Vaq5vFLRSKVQH5 u3pNn//nIuH/L/RozZEOANh6zcr2Uc0cXR9U2ZpHpVS7klSuGIdMyJpsNQC1DV+uf150 MBhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FbtH5+u9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a056402268b00b00468f681ea48si10713433edd.116.2022.11.21.13.47.09; Mon, 21 Nov 2022 13:47:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FbtH5+u9; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbiKUVq5 (ORCPT + 99 others); Mon, 21 Nov 2022 16:46:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231148AbiKUVqy (ORCPT ); Mon, 21 Nov 2022 16:46:54 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D34B2BB; Mon, 21 Nov 2022 13:46:53 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669067210; 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: in-reply-to:in-reply-to:references:references; bh=25pWSq2e0C2TXCLukHvs6vCqh5MLBCLUpnDn0otJ9KE=; b=FbtH5+u9waXGg9CZo4ZHjniJ+8r8at+QGoIS9BThWJMRaXfGgvvM57EI7jHICnZDFiZ+93 z4sIAaNaYH6eRqntVRHdnFbu+k2UsZCKlWimu1/FMl5+EFEv0o7rcHMknAZ+oHya6Pl3Nx crh4wRoHufoVeNE4dSSz5vnSwesd8dTlYfXXCej09nm4sxp0kFSi87M1nin4mfyTgxUY2J wuneBMYMIil+AcGf9nMKqQeoNAjDVgz2d0sjdO5c3osq7Z0p4eZRoVvHmGT0B6raYC6Too subJz0SN+eC6CPAdF2zQjg74jxJ360v5Z+SiO93w7LkDEWHfMm/NuTQfCcGRnw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669067210; 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: in-reply-to:in-reply-to:references:references; bh=25pWSq2e0C2TXCLukHvs6vCqh5MLBCLUpnDn0otJ9KE=; b=NbrOnvoe5zioV94Av3uKut/LcoD7xKzjrW2JK0zqV8FVPlBu19Fbk5a/pccUiDpb8PeGpq bx1QQ/5PLS7Ei7CA== To: Steven Rostedt Cc: LKML , Linus Torvalds , Anna-Maria Behnsen , Peter Zijlstra , Stephen Boyd , Guenter Roeck , Andrew Morton , Julia Lawall , Arnd Bergmann , Viresh Kumar , Marc Zyngier , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: Re: [patch 10/15] timers: Silently ignore timers with a NULL function In-Reply-To: <20221121163522.5eedbfe9@gandalf.local.home> References: <20221115195802.415956561@linutronix.de> <20221115202117.560506554@linutronix.de> <20221121163522.5eedbfe9@gandalf.local.home> Date: Mon, 21 Nov 2022 22:46:49 +0100 Message-ID: <87wn7ogeuu.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain 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 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-bluetooth@vger.kernel.org On Mon, Nov 21 2022 at 16:35, Steven Rostedt wrote: > On Tue, 15 Nov 2022 21:28:49 +0100 (CET) > Thomas Gleixner wrote: >> @@ -1532,6 +1573,12 @@ static void expire_timers(struct timer_b >> >> fn = timer->function; >> >> + if (WARN_ON_ONCE(!fn)) { >> + /* Should never happen. Emphasis on should! */ >> + base->running_timer = NULL; >> + return; > > Why return and not continue? > > Wont this drop the other timers in the queue? Duh. Yes. Thanks for catching that!