]> err.no Git - linux-2.6/commitdiff
[ALSA] Remove nested mutexes in seq_ports.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 21 Jun 2006 14:37:54 +0000 (16:37 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 22 Jun 2006 19:34:42 +0000 (21:34 +0200)
Removed nested mutexes in the removal routine of port connections.
The port is guaranteed to be offline before calling it, so no mutex
is needed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_ports.c

index 5f46ee9e2174192c89943d4582148b2b6ca583a7..334579a9f268b692178ee301ec3103c4072d8981 100644 (file)
@@ -221,7 +221,6 @@ static void clear_subscriber_list(struct snd_seq_client *client,
 {
        struct list_head *p, *n;
 
-       down_write(&grp->list_mutex);
        list_for_each_safe(p, n, &grp->list_head) {
                struct snd_seq_subscribers *subs;
                struct snd_seq_client *c;
@@ -259,7 +258,6 @@ static void clear_subscriber_list(struct snd_seq_client *client,
                        snd_seq_client_unlock(c);
                }
        }
-       up_write(&grp->list_mutex);
 }
 
 /* delete port data */