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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2017 08:23:16 +0000 (10:23 +0200)
commitf9e937124ec22a0c36c45a2d07d693492a46471e
tree6a799ecadaab58763457bd076edf41e0f7017694
parent4516069f1b05d3e84f5e11a8490ee0ca09997731
ALSA: seq: Enable 'use' locking in all configurations

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>
sound/core/seq/seq_lock.c
sound/core/seq/seq_lock.h