Re: [PATCH v2] ALSA: pcm: Unlink substreams before releasing them
From: Takashi Iwai
Date: Thu Oct 15 2026 - 03:22:20 EST
On Thu, 15 Oct 2026 04:07:10 +0200,
Cen Zhang wrote:
>
> Hi Takashi,
>
> >
> > Applied to for-next branch now.
> >
> > A problem with racy link removal Sashiko suggested is an interesting
> > case to be revisited, but it's no regression and can be triggered
> > independently from this change.
> >
> >
> > Takashi
>
> I saw that. The drain/unlink case looks like a real concurrency issue.
> I'll try to
> address it with a separate patch.
The patch I submitted yesterday is such an attempt:
https://lore.kernel.org/20261014141212.316223-1-tiwai@xxxxxxx
Unfortunately it couldn't be reviewed by Sashiko, as it's based on my
latest tree. And now I noticed that there is still a potential race,
and fixed now. Will resubmit v2 patch.
thanks,
Takashi