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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:40 +0000 (13:34 +0000)
commitd8b2e551d8ecfe59c667923892a50d6ac469ce94
tree9cc788a6d2b57cbeaa10151012924dbb60162cdd
parent7c27b82fad16d2804c7c8405316a636f57edeabd
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: Ben Hutchings <ben@decadent.org.uk>
sound/core/seq/seq_lock.c
sound/core/seq/seq_lock.h