From: Takashi Iwai <tiwai@suse.de>
To: Jiri Slaby <jslaby@suse.cz>
Cc: Jaroslav Kysela <perex@perex.cz>,
alsa-devel@alsa-project.org, LKML <linux-kernel@vger.kernel.org>,
USB list <linux-usb@vger.kernel.org>,
Jiri Slaby <jirislaby@gmail.com>
Subject: Re: Sound+USB: deadlock problem
Date: Tue, 13 Nov 2012 09:45:03 +0100 [thread overview]
Message-ID: <s5h7gppx568.wl%tiwai@suse.de> (raw)
In-Reply-To: <50A20512.10805@suse.cz>
At Tue, 13 Nov 2012 09:30:10 +0100,
Jiri Slaby wrote:
>
> On 11/13/2012 09:28 AM, Takashi Iwai wrote:
> > At Tue, 13 Nov 2012 09:26:17 +0100,
> > Jiri Slaby wrote:
> >>
> >> Hello,
> >>
> >> I've just plugged+unplugged+plugged my USB audio card and the audio
> >> subsystem got stuck:
> >
> > Which kernel? If it's older than 3.7-rc5, could you try 3.7-rc5?
>
> Oh, forgot to mention:
> 3.7.0-rc5-next-20121112_64+
Through a quick glance, one of mutex locks seems stuck.
Just a blind short -- does the patch below cure the problem?
thanks,
Takashi
---
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 030102c..a66a7ca 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -1086,7 +1086,7 @@ static int snd_pcm_dev_disconnect(struct snd_device *device)
if (list_empty(&pcm->list))
goto unlock;
- mutex_lock(&pcm->open_mutex);
+ /* mutex_lock(&pcm->open_mutex); */
wake_up(&pcm->open_wait);
list_del_init(&pcm->list);
for (cidx = 0; cidx < 2; cidx++)
@@ -1118,7 +1118,7 @@ static int snd_pcm_dev_disconnect(struct snd_device *device)
pcm->streams[cidx].chmap_kctl = NULL;
}
}
- mutex_unlock(&pcm->open_mutex);
+ /* mutex_unlock(&pcm->open_mutex); */
unlock:
mutex_unlock(®ister_mutex);
return 0;
next prev parent reply other threads:[~2012-11-13 8:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 8:26 Jiri Slaby
2012-11-13 8:28 ` Takashi Iwai
2012-11-13 8:30 ` Jiri Slaby
2012-11-13 8:45 ` Takashi Iwai [this message]
2012-11-13 9:39 ` Jiri Slaby
2012-11-13 10:16 ` Takashi Iwai
2012-11-14 10:44 ` Re : " Matthieu CASTET
2012-11-14 14:59 ` Takashi Iwai
2012-11-15 20:01 ` Ben Hutchings
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=s5h7gppx568.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=jirislaby@gmail.com \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=perex@perex.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®