Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp386539rwl; Fri, 4 Nov 2022 01:23:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PNihNW6h6sIqMVuC1KqZ+0BCnRu9VncKiR/79/JO/SstD7i0OwS6dxgVF4l+r5kLjLk+V X-Received: by 2002:a17:90a:d3c7:b0:213:7f6:e5b6 with SMTP id d7-20020a17090ad3c700b0021307f6e5b6mr53736693pjw.42.1667550225213; Fri, 04 Nov 2022 01:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667550225; cv=none; d=google.com; s=arc-20160816; b=ZZl+BsqGteetUwlJEzjtBZ0be9W8MLQcDie/wzfk61Q+mFTqGu9V+pj0VTrnc1WDJm 2GqdI4X3sNNzgwiZjZCqk93wVZ+R10X5Wik3Rr1q3RqCYUTT8CEhtZYAE8W7Quie2m6q i5LSK2Rs7BFIgj1aLdsQ99vO6Fs5ECI7cCkjZt0ckFBr/5YumdOgkzz/48lShxAKERqx y+YHicoA1yQRyE5scxK9zRY12w9DjQcJqO2CsSf4HISgk7JEYLY3duwko7SIQ/un1BYl bWZ0VmEAO+beaow4/9xtUSTgNX7miXmUuNWTNEMyYzGNLtMIWVNV16HUAx+ayJPpzxD0 wk6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=0CfkzgBgYU6H64HIDvqy65jOVZfsZhtUfYs3vAtppVY=; b=b+/yBMfyLSV67kdmsNnSIaxUo/jgV1vnqnesUbzx6Z4n7kWfHKgKsX8SYJtFLjQW9W xmmQuYYBAteubrfE7pnkqTxypc63p9PrnTHSy6jT9UxZ9B5P8VkW1w0b8csWVJ2Rxa8n UKrreFsXtIIy/1eMYayiDI1p/Wn2YnXtdvO7iAc0Rq0MDaUwDCbNEZjOxQBN8UT6QElT y1Nz3zF7aOvgTxTQL2rvURGVr60k0EWPx5icBC3LrFi1UckqsX3JTE+dfycSAXnfqikl 0BFsrVvXZc4BhGHvv85Z64/lfks/VWMRAXMX2sgTdym3tDXmM4LT33q2j2PpAveAqCY+ CdPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DwQoZ21P; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=GL9LsRbV; 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=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a17090276cb00b0018696ec99e9si3136654plt.492.2022.11.04.01.23.32; Fri, 04 Nov 2022 01:23:45 -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=@suse.de header.s=susede2_rsa header.b=DwQoZ21P; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=GL9LsRbV; 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=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiKDIL6 (ORCPT + 97 others); Fri, 4 Nov 2022 04:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231243AbiKDILz (ORCPT ); Fri, 4 Nov 2022 04:11:55 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F2C25C48 for ; Fri, 4 Nov 2022 01:11:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 01B3E1F8D3; Fri, 4 Nov 2022 08:11:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1667549513; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0CfkzgBgYU6H64HIDvqy65jOVZfsZhtUfYs3vAtppVY=; b=DwQoZ21PtPrPzqujBPconBBWADj1oZNmWq8370xTrnW7MJMhqPfhrv66CVjht6yMm3TDxN qsCum1v50/Yk6kdGdC/c6fUVGmsdVjgBb0ux+aSTZXhxpI9KowWL3puz2MybpqMpceC0ou eHsbBPDxCYRQAVpqC0BovuJV5NG/AS8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1667549513; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0CfkzgBgYU6H64HIDvqy65jOVZfsZhtUfYs3vAtppVY=; b=GL9LsRbVUNwl6/poNlgpMP1vKsZJd6cQ0YGPzpIEFjn3BDTgY4qv40pFrsI7ep3f+zs72X O2HlglmEziC8kJCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8F98513216; Fri, 4 Nov 2022 08:11:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id tNo/IEjJZGOAVQAAMHmgww (envelope-from ); Fri, 04 Nov 2022 08:11:52 +0000 Date: Fri, 04 Nov 2022 09:11:51 +0100 Message-ID: <87zgd7jfzs.wl-tiwai@suse.de> From: Takashi Iwai To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Jaroslav Kysela , Takashi Iwai , Austin Kim , alsa-devel@alsa-project.org Subject: Re: [RFC][PATCH v3 29/33] timers: ALSA: Use timer_shutdown_sync() before freeing timer In-Reply-To: <20221104054917.188768105@goodmis.org> References: <20221104054053.431922658@goodmis.org> <20221104054917.188768105@goodmis.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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, 04 Nov 2022 06:41:22 +0100, 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: Jaroslav Kysela > Cc: Takashi Iwai > Cc: Austin Kim > Cc: alsa-devel@alsa-project.org > Signed-off-by: Steven Rostedt (Google) Reviewed-by: Takashi Iwai thanks, Takashi > --- > sound/i2c/other/ak4117.c | 2 +- > sound/synth/emux/emux.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/i2c/other/ak4117.c b/sound/i2c/other/ak4117.c > index 1bc43e927d82..640501bb3ca6 100644 > --- a/sound/i2c/other/ak4117.c > +++ b/sound/i2c/other/ak4117.c > @@ -47,7 +47,7 @@ static void reg_dump(struct ak4117 *ak4117) > > static void snd_ak4117_free(struct ak4117 *chip) > { > - del_timer_sync(&chip->timer); > + timer_shutdown_sync(&chip->timer); > kfree(chip); > } > > diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c > index a870759d179e..0006c3ddb51d 100644 > --- a/sound/synth/emux/emux.c > +++ b/sound/synth/emux/emux.c > @@ -129,7 +129,7 @@ int snd_emux_free(struct snd_emux *emu) > if (! emu) > return -EINVAL; > > - del_timer_sync(&emu->tlist); > + timer_shutdown_sync(&emu->tlist); > > snd_emux_proc_free(emu); > snd_emux_delete_virmidi(emu); > -- > 2.35.1 >