Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1304353rwl; Fri, 4 Nov 2022 12:14:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4RrGRrdlSbUFfRWVfVYmxP8uXyjkJR5z25Dm+quLfDfv4dJxnxTJfAf+VXKcibIKcFDYg5 X-Received: by 2002:a17:90b:4c87:b0:213:5fe0:6700 with SMTP id my7-20020a17090b4c8700b002135fe06700mr52771142pjb.128.1667589291487; Fri, 04 Nov 2022 12:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667589291; cv=none; d=google.com; s=arc-20160816; b=Yx9o6ki2KayfAbNz0J1Ko+OxZiGcndt/WCulpYCYsw50acV7oOSjMQkU80KxGc5+sV 04TBPVbOz9zhpfOjxcVflZN0ea+24JAWBr9tpLFkVKRUuoskxGRZyIHe2rKypFnmrSso 5FlfSBuIXfK8KZ8T8TZnPusFOWESYmBFikAgBb6IEo/vCN4dvSYF6i6HWmZd2PyJ+ygF QqEnaKjnpf0uh+9mLeJEEaldq6jDV0u6yH3T4mA45zwc0ogy70jWEoAGA+0A/njdPbOc UmnH0SgUOyUZCtcXgT2IGfOVQmM4a7lHh5oYrCgBA+TFVgpFoYN0fARSuVCks6uR1HAh msIQ== 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=YQaFk/FrCs/0EuXzvQ2zvISjc1hLi9ua25nx9d1ojlU=; b=xr5/Nteschf8QKUvQlWTryGAP47ejvdd0iF/GHHqmvHMU77L0Q5DLZNCwaBxzZDVXG Uv6eGUrM5ETM/XTkyOs3pr3tgrgHdImCHFRwLau4D9N2h9Q4y45Ljy2AxRN96mP2hcNz b9dNbLbhOOXnBULHTnMIQ6X2rbr6p0vTZ9E8PA5i7DPcFU1LieJtn4JDkFPOf6AAy6zd 3DX5DnRCQbg22Nw8qm2YCqctv3ogJrdP0wCUoW86WyFeAexdizHgRRDgPXhP64TuiUxx eLslNSsd2Qj0jLUPKg7Ns62FfS4ukB7lsLcuD7E3hUa8opzaRJiYnZKIeuw8w3MPXPkN tq+g== 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 w184-20020a6382c1000000b0044b5e15db73si346119pgd.249.2022.11.04.12.14.39; Fri, 04 Nov 2022 12:14:51 -0700 (PDT) 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 S229663AbiKDSy5 (ORCPT + 96 others); Fri, 4 Nov 2022 14:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiKDSyz (ORCPT ); Fri, 4 Nov 2022 14:54:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCF9C51C3C; Fri, 4 Nov 2022 11:54:53 -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 746BA622FF; Fri, 4 Nov 2022 18:54:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CF9DC433D6; Fri, 4 Nov 2022 18:54:52 +0000 (UTC) Date: Fri, 4 Nov 2022 14:54:50 -0400 From: Steven Rostedt To: Ryusuke Konishi Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , linux-nilfs@vger.kernel.org Subject: Re: [RFC][PATCH v3 28/33] timers: fs/nilfs2: Use timer_shutdown_sync() before freeing timer Message-ID: <20221104145450.7944d825@rorschach.local.home> In-Reply-To: References: <20221104054053.431922658@goodmis.org> <20221104054917.009383303@goodmis.org> 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 Fri, 4 Nov 2022 15:57:04 +0900 Ryusuke Konishi wrote: > On Fri, Nov 4, 2022 at 2:48 PM Steven Rostedt wrote: > > > > From: "Steven Rostedt (Google)" > > > > Before a timer is freed, timer_shutdown_sync() must be called. > > > > Link: https://lore.kernel.org/all/20220407161745.7d6754b3@gandalf.local.home/ > > > > Cc: Ryusuke Konishi > > Cc: linux-nilfs@vger.kernel.org > > Signed-off-by: Steven Rostedt (Google) > > --- > > fs/nilfs2/segment.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/fs/nilfs2/segment.c b/fs/nilfs2/segment.c > > index b4cebad21b48..c50dc377da26 100644 > > --- a/fs/nilfs2/segment.c > > +++ b/fs/nilfs2/segment.c > > @@ -2752,7 +2752,7 @@ static void nilfs_segctor_destroy(struct nilfs_sc_info *sci) > > > > down_write(&nilfs->ns_segctor_sem); > > > > - del_timer_sync(&sci->sc_timer); > > + timer_shutdown_sync(&sci->sc_timer); > > kfree(sci); > > } > > > > -- > > 2.35.1 > > Acked-by: Ryusuke Konishi > > This is the second time, but my Ack is not tagged, so I'll reply again > just in case. > Thanks. I might have missed it, but I also changed the name, and wanted to make sure everyone saw that ;-) -- Steve