Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1823677rwi; Thu, 27 Oct 2022 22:39:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/Njkm1KzBe87KY0oYZpQasKIzIJ++SwDnERPIA/1i0ys5oO8NBYKnROduV6QJpCIYFWQ2 X-Received: by 2002:a17:907:2cf7:b0:78d:c7fc:29ff with SMTP id hz23-20020a1709072cf700b0078dc7fc29ffmr46500017ejc.748.1666935576569; Thu, 27 Oct 2022 22:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666935576; cv=none; d=google.com; s=arc-20160816; b=sBsAvmB4hnXsFJ2x6HLjRnAsKygZd78+LehfVPHjII96DAy8o4/EX5Vk1YhWXLgRus D3mzyCxGQh/SL9MwlkWjQu1wEg3cZ86Z8xFV+JjwgNlbYjRFbv9NXSRZzuRK4vWMDO2M w8TxjhW5kNez5ce/jgcis/jVB8ZhAdwf7CsdzaKqmNVUmoO/ffvOL7IQrei7pJbAGuTR YqupByUyraueJY4wAE0eLU321pwCs/AIapVK741D8DPglUSFq3lxs7LfYyBpUfVYrd5U LD+CQpkq1P044+LQ6qZ5jbmJ1BOD7dFVHhH0LE9tEp/66D/zj4S7HlUpp7m/K2XO+zFd Luvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Dm82la1bhnQQM/NPgA4OJFAqxsf61ZI1OYbb+W3nkWY=; b=sB8PBWkRZroBxaI+gHxmz8gXvpokLqwxPRdd7GqA0malUHE2aY7OnqMds7auVMeU8h u9BZ/gdSbhYeI3theErBPvtRKL3p8Dqhxb0F+UqFgkRAqWA+kFX3UL2iILrDypwQU4Ac NArU9Uv9uxw1mdQlzsYLkzwF9Ueir1AAEUPO01rV1BUHIuIOlQ/E5tb+sXZQaufjFhEr HpvKv5wFti0gFX4DLfpgr6i9qmQC2mNikMK3BzpF1SSdMiSdjBmcu9Cwq/CBvpaazAX8 YIPmfJrzPKKBPkVcHT0PRIv1e2DQc8pcwEeI8YGlz0Q5gr+Cb8bycWzCpZ3rTOL4qzQR fqCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NlsL0Zi0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq25-20020a1709073f1900b0078dad5e8d65si3920487ejc.68.2022.10.27.22.39.06; Thu, 27 Oct 2022 22:39:36 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NlsL0Zi0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229536AbiJ1FN1 (ORCPT + 99 others); Fri, 28 Oct 2022 01:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiJ1FN0 (ORCPT ); Fri, 28 Oct 2022 01:13:26 -0400 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FF9F1ABEF6; Thu, 27 Oct 2022 22:13:25 -0700 (PDT) Received: by mail-vs1-xe2f.google.com with SMTP id v129so4144392vsb.3; Thu, 27 Oct 2022 22:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Dm82la1bhnQQM/NPgA4OJFAqxsf61ZI1OYbb+W3nkWY=; b=NlsL0Zi0pgj3t8+As3JBuxUt9yjd9FG5XBdHyyHuGDonR6ULDq7sjSU7DfozcU3+MM 8nJ0gjGRbYUBivKZIs593V5vcMn9bUi6756hdDOxepQjJPRNRWM10JhjEHuRp2PslnAR ExZoY3I7oEcS1L0SQG7zH6bNH7Pfq7YFywqYJpa6EeasnNOsYCSUVrQQzhORq2p65I9X uQJoVW60B54zO46gTkDv999aa/XKe1PzwiZvMJXgPn7labYPGhkMub6sFeX/OX+uzX93 PBQ5BzClTxUBiVgsPi1u7ggg5OPXMcYk66+O/+8imZjc06mHNq3t3T7X2/MIqDKh8uGE GErA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Dm82la1bhnQQM/NPgA4OJFAqxsf61ZI1OYbb+W3nkWY=; b=vWivm3hiC08NMAXBdAOApmkXLxpNF2juFXJ5fHNz31+bw7nLpqTMJSBpxV7N8z5HDi SYTzUlN4ldnU5IkqtCh+fjUHyEYGH8anfk2+CbiBiV6QyQLIPsTsrvliN9s8IBOkBTpR gYXlX4QUzsYCpZlNhr1J2eLlsk7ix/vwj238b0CudyjG812mwUypbk7DZN4jIEuD1wOo 165lQ0A+8+Z2fVBtvDLNbPtnCKuMze5lHAXuPVP32WkbIsaYimmAQf4BJxKjnf3pKgRR vBkZM1v4Y8YRJLAMtkv25fYWjJIOu7GzYEJZQwU0jpgjaGkmycwV78FXjHO9vzhvPhFB 3R6g== X-Gm-Message-State: ACrzQf0QQLP6WkPpW0fPy+PkeOA+WEBPPRWP2yslSmmUe41LDKa8HnMD 47MskoXDvLxWuQsSRXO2RY+6QOu/IlTdBOiGEr/8tMrfaKg= X-Received: by 2002:a67:a449:0:b0:3aa:4cd7:8ae9 with SMTP id p9-20020a67a449000000b003aa4cd78ae9mr5795192vsh.22.1666933985645; Thu, 27 Oct 2022 22:13:05 -0700 (PDT) MIME-Version: 1.0 References: <20221027150525.753064657@goodmis.org> <20221027150930.513327801@goodmis.org> In-Reply-To: <20221027150930.513327801@goodmis.org> From: Ryusuke Konishi Date: Fri, 28 Oct 2022 14:12:48 +0900 Message-ID: Subject: Re: [RFC][PATCH v2 28/31] timers: fs/nilfs2: Use del_timer_shutdown() before freeing timer To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , linux-nilfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, Oct 28, 2022 at 12:09 AM Steven Rostedt wrote: > > From: "Steven Rostedt (Google)" > > Before a timer is freed, del_timer_shutdown() 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..1d3f89de1cd2 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); > + del_timer_shutdown(&sci->sc_timer); > kfree(sci); > } > > -- > 2.35.1 del_timer_shutdown() is not yet in the mainline, so I reply with: Acked-by: Ryusuke Konishi in the sense that I agree with the purpose of introducing the new function and the place to apply it is correct in nilfs2. Thanks, Ryusuke Konishi