Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5207105rwb; Mon, 21 Nov 2022 18:40:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5fL5Y4s0ZYSR/rSXJA5gcTJ4RQKNa1H/rNoGNo67Y0LD7fs7ULX9uKLZtvSiHXW3xUQdoK X-Received: by 2002:a17:903:264c:b0:17c:f013:8fae with SMTP id je12-20020a170903264c00b0017cf0138faemr15040247plb.138.1669084843705; Mon, 21 Nov 2022 18:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669084843; cv=none; d=google.com; s=arc-20160816; b=jKhTwaSMH9Xj5MFDTSTdQfKo1iAqIrQ7rdiJbg9AGMvop9KstT8yacV4DwGL4ah6Y+ gwbjqEGivn493uTtMjCooYOq104OqXe546xTExzLOaOMqqlV1Dn+eckw3BR0qE92BYdC hHDQggoY4g0aI2cwCpOj5Wl1TlXUwY5BzJtCX/b9aqGqjxF+9pEnmcDPdUpTO4CQPJv8 cmgwfQfEUG2FTcQGUaNaQvWyy2fs+Hv5pQBRzZR9e0aV309A2+VrqSbowGwly1y+kUWN kHggYeXuqnKp5lfVjkXf1T0WSxhfSeY2WVgJ3Xg31ckPX/+dUQwkYpgetgMP5Bh3n+6a sYrg== 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=cir+8V+y5kSQy4KCFz1ebhChE2Pw7yR+mH3OFzbrPN8=; b=DxMp1R1hJuAVozZ0l3/oEeMzENsq9hpeMgV8uUto5bKO8kXdzCu8T/FJJrBW3QxKcr x2ba/oafQlOCD2CjpZE9eA/vgRdiZscSimzpvAV9X2BQWXTIydqvoCg4mGk/ZsGjdXxP /absliCGCNVkKPsd2xRfx0Y2a77lwtP18I/rwQV2IP9f+eXCh+fsxNoaA9WVtkL5EsWD 2LnikcQZsl/6IAB1RaphjS73I2/TEU3pa92nt2p/rkf8VywGYm4KKbi/fbueNAeT4Z7l FdfVoechYvQf4QPvjdE2hiURGhhLvPChzDZjJpDfGe8RyW+BjdiRjkcklHcM48H48sYP reTg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a056a0024d200b0056782f3bdf1si14584424pfv.19.2022.11.21.18.40.01; Mon, 21 Nov 2022 18:40:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232018AbiKVCiU (ORCPT + 99 others); Mon, 21 Nov 2022 21:38:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbiKVCiN (ORCPT ); Mon, 21 Nov 2022 21:38:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 890755CD1C; Mon, 21 Nov 2022 18:38:09 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3709061543; Tue, 22 Nov 2022 02:38:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3843FC433D6; Tue, 22 Nov 2022 02:38:06 +0000 (UTC) Date: Mon, 21 Nov 2022 21:38:02 -0500 From: Steven Rostedt To: Thomas Gleixner 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 00/15] timers: Provide timer_shutdown[_sync]() Message-ID: <20221121213802.1cd09674@rorschach.local.home> In-Reply-To: <20221115195802.415956561@linutronix.de> References: <20221115195802.415956561@linutronix.de> 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-bluetooth@vger.kernel.org On Tue, 15 Nov 2022 21:28:32 +0100 (CET) Thomas Gleixner wrote: > The patches have been split up into small pieces to make review easier and > I took the liberty to throw a bunch of overdue cleanups into the picture > instead of proliferating the existing state further. After applying all these patches, and then my updates to the rest of the kernel, as well as my update to the debug objects to require shutdown. It reported this was needed: -- Steve diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 0fbb71950ca2..3e84a2621913 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -2188,7 +2188,7 @@ signed long __sched schedule_timeout(signed long timeout) timer_setup_on_stack(&timer.timer, process_timeout, 0); __mod_timer(&timer.timer, expire, MOD_TIMER_NOTPENDING); schedule(); - del_timer_sync(&timer.timer); + timer_shutdown_sync(&timer.timer); /* Remove the timer from the object tracker */ destroy_timer_on_stack(&timer.timer);