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 BB77DC4332F for ; Sun, 6 Nov 2022 21:52:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbiKFVw2 (ORCPT ); Sun, 6 Nov 2022 16:52:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbiKFVwY (ORCPT ); Sun, 6 Nov 2022 16:52:24 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D843111F for ; Sun, 6 Nov 2022 13:52:23 -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 AF33860DBF for ; Sun, 6 Nov 2022 21:52:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE9E8C433C1; Sun, 6 Nov 2022 21:52:21 +0000 (UTC) Date: Sun, 6 Nov 2022 16:52:20 -0500 From: Steven Rostedt To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Julia Lawall Subject: Re: [PATCH v5a 5/5] treewide: Convert del_timer*() to timer_shutdown*() Message-ID: <20221106165220.4d7e5dac@rorschach.local.home> In-Reply-To: References: <20221106054535.709068702@goodmis.org> <20221106054649.099333291@goodmis.org> <20221106160956.2414d73f@rorschach.local.home> 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-kernel@vger.kernel.org On Sun, 6 Nov 2022 13:39:45 -0800 Linus Torvalds wrote: > So yes, I'm happy with this. It looks like a very reasonable "let's > handle the scripted trivial cases automatically", and then anything > more complicated can be left for 6.2. Great to hear. > > And with that cocci script (and how to run it), people can see what > the script was, and even run it themselves to verify, and that just > makes me feel all warm and fuzzy about it. I can update the change log to include: $ cat timer.cocci @@ expression E, ptr, slab; identifier timer, rfield; @@ ( - del_timer(&ptr->timer); + timer_shutdown(&ptr->timer); | - del_timer_sync(&ptr->timer); + timer_shutdown_sync(&ptr->timer); ) ... when strict when != ptr->timer.function = E; ( kfree_rcu(ptr, rfield); | kmem_cache_free(slab, ptr); | kfree(ptr); ) $ spatch --dir timer.cocci . > /tmp/t.patch $ patch -p1 < /tmp/t.patch if you want. The question now comes, how should you take it? - You pull in this series directly. - Thomas takes it and sends you a pull request (although he's been very quiet on this topic, even though he told me he was OK with it on IRC). - I add it to my tree, and send you a pull request? I'll let you choose. -- Steve