From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95DC1FA3741 for ; Fri, 28 Oct 2022 23:29:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbiJ1X3k (ORCPT ); Fri, 28 Oct 2022 19:29:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbiJ1X3j (ORCPT ); Fri, 28 Oct 2022 19:29:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD63FD37; Fri, 28 Oct 2022 16:29:37 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id CAF4962AF5; Fri, 28 Oct 2022 23:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CDC3C433C1; Fri, 28 Oct 2022 23:29:34 +0000 (UTC) Date: Fri, 28 Oct 2022 19:29:50 -0400 From: Steven Rostedt To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Stephen Boyd , Greg Kroah-Hartman , Felipe Balbi , Johan Hovold , Alan Stern , Mathias Nyman , Kai-Heng Feng , Matthias Kaehlcke , Michael Grzeschik , Bhuvanesh Surachari , Dan Carpenter , linux-usb@vger.kernel.org, Tejun Heo , Lai Jiangshan , John Stultz Subject: Re: [RFC][PATCH v2 20/31] timers: usb: Use del_timer_shutdown() before freeing timer Message-ID: <20221028192950.1348c620@gandalf.local.home> In-Reply-To: <6107f2b1-fcd2-918b-328d-401cc22710be@roeck-us.net> References: <20221027150525.753064657@goodmis.org> <20221027150928.983388020@goodmis.org> <4e61935b-b06b-1f2d-6c2b-79bdfd569cd6@roeck-us.net> <20221028140129.040d9acc@gandalf.local.home> <20221028141007.05f5c490@gandalf.local.home> <20221028195959.GA1073367@roeck-us.net> <20221028164024.2ab39cc1@gandalf.local.home> <6107f2b1-fcd2-918b-328d-401cc22710be@roeck-us.net> 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 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Fri, 28 Oct 2022 16:25:32 -0700 Guenter Roeck wrote: > On 10/28/22 13:40, Steven Rostedt wrote: > > On Fri, 28 Oct 2022 12:59:59 -0700 > > Guenter Roeck wrote: > >> > >> I'll test again with the following changes on top of your published > >> patch series. I hope this is the current status, but I may have lost > >> something. > >> > >> Looking into it ... deactivate_timer() doesn't do anything > >> and seems wrong. Did I miss something ? > > > > You mean debug_deactivate_timer() or debug_deactivate? > > > > This: > > +static void deactivate_timer(struct work_struct *work, bool is_dwork) > +{ > + struct delayed_work *dwork; > + > + if (!is_dwork) > + return; > + > + dwork = to_delayed_work(work); > +} Oh, that was part of my trying to figure out WTF delayed work was doing with its timers. You can delete it's existence. Thanks (and I'll go remove it from my tree). -- Steve