Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8538962rwb; Thu, 24 Nov 2022 00:30:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5blix5316+9IEWku7WN3cPJaRNiTwF/574lhkrzoRqL+kK6Me6IlEP1tDw4bCYsNO546dM X-Received: by 2002:a17:907:b014:b0:7b4:86be:f3e3 with SMTP id fu20-20020a170907b01400b007b486bef3e3mr19305890ejc.741.1669278647962; Thu, 24 Nov 2022 00:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669278647; cv=none; d=google.com; s=arc-20160816; b=AGkRfgMsZgt1vm0x/EZhVPDdAPmIGCFeL8fO0zMjRk1sElNL5p3/rv0seQJi7Yp/GS uUjd4ziostPO8rBnVrjVeeLQm1lu8A3BNd/HyUC3pOZ2WxpRm5bgaxkFkLuZCuMcHKRo 4ikdg5ga9pNEeEYp7oiiXtr/EKtDQdJ6uq5noROWnjTs92ISe0wlO6S4byWV5hQveosc TuG/uCYU+HAQ2tbaIgtdw3a31O9fRbdHf6uVHYFAypbEvalM6DtVIbObp2C8PRwqYth0 4cEX4ERiO/1v/XVL7hI5nt6Ao6ZJhqcOSC4y+ExLRcaQwuX+j6wcTDfAtRZNqMRN3mpJ tJZw== 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=rBNp84cE9rns7J7UgaJIbhZ4vtMYMawfokeJnqIV8yU=; b=LMKu2pdt79Q2HfGfiSDKlCJGR4rKJi4RGFnTfNbt4rWajPFrWdDLc2vva6p15dD2je 7Ux+pyLyJuUlf0rCo/vml0e58ib5a6h5qOF/+jxO6sWene+8FEa/Y7d0YAGw6UZNts94 /4nztDql71qVesHkLJ/akAVGVN7mlPZdz0FoRcoeMILTdYVxBAawE/H4UDZ+ziQiiSbC GNuKtl2t1CA/LFApGvCRceiLS+3E7s0jSwR5NYzgLxTTHXlXojrb2/ooGhiM96hFLbnx J+U7KUgJkV5KpPONDSIHWOj5scdVH8JzhJQeOVsUWapbGYCcaimm5267fpvr+CSx7tHa WnyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="3j0Ccw1/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=0NTusCg3; 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 cr10-20020a056402222a00b004634dd8b6edsi43718edb.296.2022.11.24.00.30.10; Thu, 24 Nov 2022 00:30:47 -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="3j0Ccw1/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=0NTusCg3; 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 S229799AbiKXITT (ORCPT + 99 others); Thu, 24 Nov 2022 03:19:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbiKXITF (ORCPT ); Thu, 24 Nov 2022 03:19:05 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C76E24BC9; Thu, 24 Nov 2022 00:18:48 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669277926; 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=rBNp84cE9rns7J7UgaJIbhZ4vtMYMawfokeJnqIV8yU=; b=3j0Ccw1/zby95sNNg0TIWuyYXsfO/PBhjK2DzrVReplJ9Clf5ntgfXo73fot1qffrB9bbz XSaUGU++P6qnOe2i6cLW+xAV++1Y71qnCmp1PxyVGUSobJAFAURI5N7K4oJ3WEqcYkrT0+ 1Vll+nrLUDmXBtXJk+d8Wt4+LzKpKMFXf6XgJBVjTG45Xk0AzAmtrlXBTej0SIc1Vy1RhA +/xLZK3MFtgCf/rE9+Q4Gs4k2nLHU3L03wTGn5OsHzrhhNfVYqNuoC7tXCSiMBofdSC9gI Fi68qHxG1/SH4xB4dbdBL8iWXl0c4TU/ji58H1qSntb1UNTQ8xcuIFBFY/JESw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669277926; 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=rBNp84cE9rns7J7UgaJIbhZ4vtMYMawfokeJnqIV8yU=; b=0NTusCg3KEMlk8MtBj5SWLGIW0kvCMsvAVEt6DpLMhgzsNf+gHGM7ZsiP+hbA1w9EqUUUi TBLn+ePExWkhYYBg== To: Anna-Maria Behnsen Cc: LKML , Linus Torvalds , Steven Rostedt , 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, Jacob Keller Subject: Re: [patch V3 12/17] timers: Silently ignore timers with a NULL function In-Reply-To: <644695b9-f343-7fb7-ed8e-763e5fe3d158@linutronix.de> References: <20221123201306.823305113@linutronix.de> <20221123201625.135055320@linutronix.de> <644695b9-f343-7fb7-ed8e-763e5fe3d158@linutronix.de> Date: Thu, 24 Nov 2022 09:18:46 +0100 Message-ID: <87zgcgdau1.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 Thu, Nov 24 2022 at 08:37, Anna-Maria Behnsen wrote: > On Wed, 23 Nov 2022, Thomas Gleixner wrote: > >> Tearing down timers which have circular dependencies to other >> functionality, e.g. workqueues, where the timer can schedule work and work >> can arm timers, is not trivial. >> >> In those cases it is desired to shutdown the timer in a way which prevents >> rearming of the timer. The mechanism to do so is to set timer->function to >> NULL and use this as an indicator for the timer arming functions to ignore >> the (re)arm request. >> >> In preparation for that replace the warnings in the relevant code paths >> with checks for timer->function == NULL. If the pointer is NULLL, then > > s/NULLL/NULL Bah. I should have went to the bar instead of trying to fix this.