diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2017-10-18 02:45:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-27 11:39:13 +0300 |
commit | da401672310d51c660e10e9f077a0e3ff4a3bbf0 (patch) | |
tree | 8e0425857f7cbe937d2df6d9ca8dcb720ae6a1cf /sound/core/seq/seq_lock.c | |
parent | e280f0677fbf5d2a273e1a372d4bfc7fdf5370a4 (diff) | |
download | linux-da401672310d51c660e10e9f077a0e3ff4a3bbf0.tar.xz |
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>
Diffstat (limited to 'sound/core/seq/seq_lock.c')
-rw-r--r-- | sound/core/seq/seq_lock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/core/seq/seq_lock.c b/sound/core/seq/seq_lock.c index 0ff7926a5a69..cda64b489e42 100644 --- a/sound/core/seq/seq_lock.c +++ b/sound/core/seq/seq_lock.c @@ -23,8 +23,6 @@ #include <sound/core.h> #include "seq_lock.h" -#if defined(CONFIG_SMP) || defined(CONFIG_SND_DEBUG) - /* wait until all locks are released */ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) { @@ -41,5 +39,3 @@ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) } } EXPORT_SYMBOL(snd_use_lock_sync_helper); - -#endif |