Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4822265rwb; Mon, 21 Nov 2022 12:23:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4D2eTlI6V7FkFz+pgmsbNTY6V1nuoYB3JLLq8J4kuCGCTR/AfCGaiQ0vib6xn46Cu1ZHHN X-Received: by 2002:a17:902:e849:b0:186:898a:f33d with SMTP id t9-20020a170902e84900b00186898af33dmr1251822plg.33.1669062205618; Mon, 21 Nov 2022 12:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669062205; cv=none; d=google.com; s=arc-20160816; b=HlZoYU47q0/tNdT//hbUuMgP05u58fA38j1KKG49ld8RIK9uDPqR8X62InBHPo9C3q SBz0y2R6i7t6yHKFZ6JRTHNlaXcs5yjvqFklbLUHNTXKlRyYY8JdHxyyrZ9uom6cDCLg Vwsz/uVnIXFWBt4znafTeEBOnQL+I4M8uljSjCq3aLxHnwHUmakLCpVMSG4b/gJOSIYw y9+9hCfkMOWxDCdbACMZCWEmwiBB5TOhvOOqYXowOnJTTWeltXQEWi8aDbbYSktSBFcK o7ZU9XUwsb/WXjddAHCcfWvDoQUbeHyP0bHy320Iw0o+XIiJxyWED5+tmBqKSha0iJFI MZtA== 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=/566ZyLn794YJcZbEWuJwH5UZ8Aw/BD80Lp2gDYz12w=; b=Rv1TmXpmQMXTken5UJBgCNn94yRiy6IT9jefQUDf9IF9R9Sx+5Zg2E9t7VPBIaqJJj Yf70Am0poKX05/wJGCJck26ULbbwwoDZWhwX/wHXIWH3/qBLpW8G2x3Voiaq2++ojH4n q7FBXGvDN/DtN7htp25nOHxckosLZYAENgJO7KhdhUrwxpSvn/VsMecGpbiyo7xa3vwD kT2wik42sH6cS9UaFr/xXcPjKObVzH0sO1SuObpV6zrDL8qLMEGTdfcTfauOrYY1+31l M4W8g+19FmeJiU15tKILgE02rptvs8bVzJSdCxE2Iel5A22/fhbUim5ZJC0od5T3SDW9 ahcQ== 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 i8-20020aa78d88000000b0056e48944895si11176480pfr.317.2022.11.21.12.23.01; Mon, 21 Nov 2022 12:23:25 -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 S229509AbiKUUIq (ORCPT + 99 others); Mon, 21 Nov 2022 15:08:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbiKUUIo (ORCPT ); Mon, 21 Nov 2022 15:08:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF07C72D1; Mon, 21 Nov 2022 12:08:40 -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 1195BB80FB3; Mon, 21 Nov 2022 20:08:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A16BFC433C1; Mon, 21 Nov 2022 20:08:35 +0000 (UTC) Date: Mon, 21 Nov 2022 15:08:33 -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 04/15] timers: Get rid of del_singleshot_timer_sync() Message-ID: <20221121150833.61ab3b01@gandalf.local.home> In-Reply-To: <20221115202117.212339280@linutronix.de> References: <20221115195802.415956561@linutronix.de> <20221115202117.212339280@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:39 +0100 (CET) Thomas Gleixner wrote: > del_singleshot_timer_sync() used to be an optimization for deleting timers > which are not rearmed from the timer callback function. > > This optimization turned out to be broken and got mapped to > del_timer_sync() about 17 years ago. > > Get rid of the undocumented indirection and use del_timer_sync() directly. > > No functional change. > > Signed-off-by: Thomas Gleixner > > --- a/net/sunrpc/xprt.c > +++ b/net/sunrpc/xprt.c > @@ -1164,7 +1164,7 @@ xprt_request_enqueue_receive(struct rpc_ > spin_unlock(&xprt->queue_lock); > > /* Turn off autodisconnect */ > - del_singleshot_timer_sync(&xprt->timer); > + del_timer_sync(&xprt->timer); And this was not even a single shot timer. It used the del_singleshot_timer_sync() function because of incorrect assumptions. Link: https://lore.kernel.org/all/20221105060155.047357452@goodmis.org/ 0f9dc2b16884b ("RPC: Clean up socket autodisconnect") 55c888d6d09a0 ("timers fixes/improvements") Reviewed-by: Steven Rostedt (Google) -- Steve > return 0; > } >