]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Fix false lockdep warnings
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Oct 2014 13:32:13 +0000 (15:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Oct 2014 16:17:02 +0000 (18:17 +0200)
commite9248aa90e555ee794d97e325ba69c86f92789e9
treebf0d5cd0cdc609592862947b2872f4114bf669d5
parent8424c5a7b08ba0804c7bf6c2a5f2906f4f0e2c1a
ALSA: pcm: Fix false lockdep warnings

As PCM core handles the multiple linked streams in parallel, lockdep
gets confused (partly because of weak annotations) and spews the
false-positive warnings.  This hasn't been a problem for long time but
the latest PCM lock path update seems to have woken up a sleeping
dog.

Here is an attempt to paper over this issue: pass the lock subclass
just calculated from the depth in snd_pcm_action_group().  Also, a
(possibly) wrong lock subclass set in snd_pcm_action_lock_mutex() is
dropped, too.

Reported-and-tested-by: Arthur Marsh <arthur.marsh@internode.on.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c