Commit 45df379798b5c3b2ea937735ef04c58ce0f532a7
Committed by
Jaroslav Kysela
1 parent
555fdc2e9f
Exists in
master
and in
7 other branches
[ALSA] Remove nested mutexes in seq_ports.c
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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
sound/core/seq/seq_ports.c
| ... | ... | @@ -221,7 +221,6 @@ |
| 221 | 221 | { |
| 222 | 222 | struct list_head *p, *n; |
| 223 | 223 | |
| 224 | - down_write(&grp->list_mutex); | |
| 225 | 224 | list_for_each_safe(p, n, &grp->list_head) { |
| 226 | 225 | struct snd_seq_subscribers *subs; |
| 227 | 226 | struct snd_seq_client *c; |
| ... | ... | @@ -259,7 +258,6 @@ |
| 259 | 258 | snd_seq_client_unlock(c); |
| 260 | 259 | } |
| 261 | 260 | } |
| 262 | - up_write(&grp->list_mutex); | |
| 263 | 261 | } |
| 264 | 262 | |
| 265 | 263 | /* delete port data */ |