Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5702231rwb; Mon, 14 Nov 2022 08:19:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf70WEhAtvgFjEwrxVOdqyjXAZaAaq0WJ2Vqri+lBtDNIeYLQh9Y125H9zQmNW9FWPC5+ZRZ X-Received: by 2002:a17:906:1515:b0:78e:2ba7:70f6 with SMTP id b21-20020a170906151500b0078e2ba770f6mr11079663ejd.382.1668442796472; Mon, 14 Nov 2022 08:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668442796; cv=none; d=google.com; s=arc-20160816; b=Y7BfZzQdSYLDNjMoWp3TJrTIzm9m5K4KFMjaesdZ3MMS9OW5BxAQ6i3gfvS+7nB+6N VHtKp3iB5jK26GPX9L+8P0G8Xtm/TdWiifA0WwA4onM2DyizCR9fNj7mPQ2rmjcNUHA5 CqjgLYJ6IY0B1tdfWbbmLiW9K903cCLXDsecFpI1QvelIvOr/3B+bbtBC++ZcKqQqOcR Q84GBZyYkDoKbHp+fQrX0pixBzZuTwzqnIpc5oWZSxQylA2ilBUjlqKM8jQxIy1zh9JD UonozaUuWdID0A6z5ldm1MXMq+UEJnftTlevJ7Ivw/+Csktr0HSeWz3U4oSuIEkZGnZ7 2gQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=5/0EKTKxH8uNZ11U+Nho9vAwIh3zVWqCU1pWGro9Fj0=; b=GhRRswmyAdG76D0sN7YWICOdR/hA2GplIhUBRYEwwC+NyS5EGApgZ/kzSVfMWhkGe0 biEqLp8YxSqS1NGovcxKWYi7OGIK2hqtUinfuqtGXDrZUAdYraNSa6xKFw/P736NEUQj 5WYEFrWSdN3/WxU22ksZfPv8kbGs6EWoU9YA42n/ADkRkUEVja9smNWsWUoaATwPAQpZ 3NZZTojiapMEMTyjJK8/5Fpbwc/yBG8BsKxVs+FpifS23CHo04nqRRgoYb2dO+Mzv6Wl urFQbVBHwUE4muvsyEWf7Q/dkvE1n2YyAT+AGQhQuer/qU2ze+KgE7FcULy7/lfaXMFB ZCjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd29-20020a1709076e1d00b007aecd8912ecsi7491460ejc.21.2022.11.14.08.19.34; Mon, 14 Nov 2022 08:19:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237298AbiKNQEO (ORCPT + 87 others); Mon, 14 Nov 2022 11:04:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237168AbiKNQEM (ORCPT ); Mon, 14 Nov 2022 11:04:12 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD6431B7BD for ; Mon, 14 Nov 2022 08:04:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7D50EB8104F for ; Mon, 14 Nov 2022 16:04:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06A0BC433C1; Mon, 14 Nov 2022 16:04:07 +0000 (UTC) Date: Mon, 14 Nov 2022 11:04:49 -0500 From: Steven Rostedt To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Julia Lawall , Eric Dumazet , Marcel Holtmann Subject: Re: [PATCH v6 4/6] timers: Add timer_shutdown_sync() to be called before freeing timers Message-ID: <20221114110449.18124499@gandalf.local.home> In-Reply-To: <87iljhsftt.ffs@tglx> References: <20221110064101.429013735@goodmis.org> <20221110064147.343514404@goodmis.org> <875yfitpdu.ffs@tglx> <20221113191518.0a3b29b1@rorschach.local.home> <87sfims7ca.ffs@tglx> <87iljhsftt.ffs@tglx> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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-kernel@vger.kernel.org On Mon, 14 Nov 2022 16:42:22 +0100 Thomas Gleixner wrote: > So something like the below should do the trick. It's compiled this time > and I spent more than 5 seconds to stare at it. Still needs some > eyeballs and splitting apart into more digestable pieces. Thanks Thomas. I really appreciate this. > > The only downside of this is that timers which are not properly > initialized are now silently ignored. That's not a real problem as > driver writers should run their code with debugobjects enabled at least > once, which will tell them nicely. So if someone has to scratch his head > why his timer is not firing, then it's well deserved. I just came back from my trip with over 300 patches to review :-p Luckily, for me, Masami is now a co-maintainer and has started that process already :-) When I catch up, I'll take a look at this more closely, and we (Guenter and I) will be running with DEBUG_OBJECTS enabled which will hopefully help catch missed places. At least for the drivers we care about ;-) -- Steve