]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ALSA: seq: Enable 'use' locking in all configurations
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Tue, 17 Oct 2017 23:45:49 +0000 (00:45 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 16 Nov 2017 13:23:16 +0000 (11:23 -0200)
commit80bb6d0a81a9c58ca5511378539dd7299e26ecb1
tree113fe3a9ec6725f4a2763c08a2f65587649863a9
parent5f369a7fae8faffa2f93258a69cd1b9bbb42155e
ALSA: seq: Enable 'use' locking in all configurations

BugLink: http://bugs.launchpad.net/bugs/1731951
commit 8009d506a1dd00cf436b0c4cca0dcec130580a21 upstream.

The 'use' locking macros are no-ops if neither SMP or SND_DEBUG is
enabled.  This might once have been OK in non-preemptible
configurations, but even in that case snd_seq_read() may sleep while
relying on a 'use' lock.  So always use the proper implementations.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
sound/core/seq/seq_lock.c
sound/core/seq/seq_lock.h