All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jaroslav Kysela <perex@perex.cz>
To: Takashi Iwai <tiwai@suse.de>, alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: pcm: Add stream lock during PCM reset ioctl operations
Date: Tue, 22 Mar 2022 18:25:21 +0100	[thread overview]
Message-ID: <d8df02af-9260-00e9-a5a5-3aa2db372457@perex.cz> (raw)
In-Reply-To: <20220322171325.4355-1-tiwai@suse.de>

On 22. 03. 22 18:13, Takashi Iwai wrote:
> snd_pcm_reset() is a non-atomic operation, and it's allowed to run
> during the PCM stream running.  It implies that the manipulation of
> hw_ptr and other parameters might be racy.
> 
> This patch adds the PCM stream lock at appropriate places in
> snd_pcm_*_reset() actions for covering that.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>

				Thanks,
					Jaroslav

-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

      reply	other threads:[~2022-03-22 17:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 17:13 [PATCH] ALSA: pcm: Add stream lock during PCM reset ioctl operations Takashi Iwai
2022-03-22 17:25 ` Jaroslav Kysela [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d8df02af-9260-00e9-a5a5-3aa2db372457@perex.cz \
    --to=perex@perex.cz \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.