aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-07-03 03:25:21 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-03 18:27:08 -0400
commitd8371f0481fd1ad2701081d37815b0bb5d236b92 (patch)
treead127a93c6216dde9b89549c01a2fd0df5c8290d /sound
parent8e7795ef6b5fd117b22b87ea7d501de2526a25f7 (diff)
[PATCH] lockdep: annotate sound/core/seq/seq_ports.c
Teach special (recursive) locking code to the lock validator. Has no effect on non-lockdep kernels. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: Takashi Iwai <tiwai@suse.de> Cc: Jaroslav Kysela <perex@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/core/seq/seq_ports.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/seq/seq_ports.c b/sound/core/seq/seq_ports.c
index d467b4f0ff2b..8c64b58ff77b 100644
--- a/sound/core/seq/seq_ports.c
+++ b/sound/core/seq/seq_ports.c
@@ -514,7 +514,7 @@ int snd_seq_port_connect(struct snd_seq_client *connector,
514 atomic_set(&subs->ref_count, 2); 514 atomic_set(&subs->ref_count, 2);
515 515
516 down_write(&src->list_mutex); 516 down_write(&src->list_mutex);
517 down_write(&dest->list_mutex); 517 down_write_nested(&dest->list_mutex, SINGLE_DEPTH_NESTING);
518 518
519 exclusive = info->flags & SNDRV_SEQ_PORT_SUBS_EXCLUSIVE ? 1 : 0; 519 exclusive = info->flags & SNDRV_SEQ_PORT_SUBS_EXCLUSIVE ? 1 : 0;
520 err = -EBUSY; 520 err = -EBUSY;
@@ -587,7 +587,7 @@ int snd_seq_port_disconnect(struct snd_seq_client *connector,
587 unsigned long flags; 587 unsigned long flags;
588 588
589 down_write(&src->list_mutex); 589 down_write(&src->list_mutex);
590 down_write(&dest->list_mutex); 590 down_write_nested(&dest->list_mutex, SINGLE_DEPTH_NESTING);
591 591
592 /* look for the connection */ 592 /* look for the connection */
593 list_for_each(p, &src->list_head) { 593 list_for_each(p, &src->list_head) {