]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: Align temporary re-locking with irqsave version
authorTakashi Iwai <tiwai@suse.de>
Thu, 28 Mar 2019 14:55:08 +0000 (15:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Apr 2019 15:22:46 +0000 (17:22 +0200)
commiteaa7a8c151d99a89bd4237784f1688f8d3cb3551
tree5125bbf3b611a39fb50413c41cdd7c310cd85d36
parent07d8e8b1973a6edba756f3db5c159f5dbe1c923f
ALSA: seq: Align temporary re-locking with irqsave version

In a few places in sequencer core, we temporarily unlock / re-lock the
pool spin lock while waiting for the allocation in the blocking mode.
There spin_unlock_irq() / spin_lock_irq() pairs are called while
initially spin_lock_irqsave() is used (and spin_lock_irqrestore() at
the end of the function again).  This is likely OK for now, but it's a
bit confusing and error-prone.

This patch replaces these temporary relocking lines with the irqsave
variant to make the lock/unlock sequence more consistently.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_fifo.c
sound/core/seq/seq_memory.c