Skip to content

Commit

Permalink
[PATCH] lockdep: annotate sound/core/seq/seq_ports.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 3, 2006
1 parent 8e7795e commit d8371f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/core/seq/seq_ports.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ int snd_seq_port_connect(struct snd_seq_client *connector,
atomic_set(&subs->ref_count, 2);

down_write(&src->list_mutex);
down_write(&dest->list_mutex);
down_write_nested(&dest->list_mutex, SINGLE_DEPTH_NESTING);

exclusive = info->flags & SNDRV_SEQ_PORT_SUBS_EXCLUSIVE ? 1 : 0;
err = -EBUSY;
Expand Down Expand Up @@ -587,7 +587,7 @@ int snd_seq_port_disconnect(struct snd_seq_client *connector,
unsigned long flags;

down_write(&src->list_mutex);
down_write(&dest->list_mutex);
down_write_nested(&dest->list_mutex, SINGLE_DEPTH_NESTING);

/* look for the connection */
list_for_each(p, &src->list_head) {
Expand Down

0 comments on commit d8371f0

Please sign in to comment.