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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21AC8C4332F for ; Fri, 4 Nov 2022 08:12:56 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9630484C; Fri, 4 Nov 2022 09:12:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9630484C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1667549574; bh=hHutvwl4lnfiX2x2+3gHH7m4RiNA3Ee6KrOIJwVP7UQ=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NHE7liYDvlwZ2UvIUcub0fUS8SXItf/Xa9Pnrgpst/mqJGILcLemi/BsspN5DOZ7N amNT+TZWq4ieuHDj1Hb5VvdM2JUkAu9fBkAT4KSHR8fxbxwtSZK8rgfiTSuZ32cX0B zKP1wXGVvgyP+6iXoXNNYymNCk/ohbpHNrHAF6jM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 09F35F80448; Fri, 4 Nov 2022 09:12:04 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 43AA6F80155; Fri, 4 Nov 2022 09:12:02 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2D29FF80155 for ; Fri, 4 Nov 2022 09:11:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2D29FF80155 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DwQoZ21P"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="GL9LsRbV" 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 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 Cc: alsa-devel@alsa-project.org, Stephen Boyd , Linus Torvalds , Takashi Iwai , linux-kernel@vger.kernel.org, Austin Kim , Thomas Gleixner , Anna-Maria Gleixner , Andrew Morton , Guenter Roeck X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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 >