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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Oct 2017 06:01:46 +0000 (08:01 +0200)
commit8009d506a1dd00cf436b0c4cca0dcec130580a21
tree209ca105955d913807eb48c6246f275b63c42e50
parent9bb201a5d5acc733943e8af7151cceab9d976a69
ALSA: seq: Enable 'use' locking in all configurations

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.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_lock.c
sound/core/seq/seq_lock.h