Use existing `audio_lock' mutex(9) to make `midi{read,write}_filtops' MP
authormvs <mvs@openbsd.org>
Tue, 26 Sep 2023 19:55:24 +0000 (19:55 +0000)
committermvs <mvs@openbsd.org>
Tue, 26 Sep 2023 19:55:24 +0000 (19:55 +0000)
commitcedac2f907797b05457bfef3ca69d2ca63825f5b
tree9fea79153382f125c3fa054973c0f16ff9960505
parentd684f834762dac9e7112a736e5bc6c1d826a42dd
Use existing `audio_lock' mutex(9) to make `midi{read,write}_filtops' MP
safe. knote_locked(9) will not grab kernel lock, so call it directly from
interrupt handlers instead of scheduling software interrupts.

feedback and ok ratchov
sys/dev/midi.c
sys/dev/midivar.h