Use a different mutex to protect the kqueue klist in logsoftc.
authorclaudio <claudio@openbsd.org>
Wed, 24 Jul 2024 13:37:05 +0000 (13:37 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 24 Jul 2024 13:37:05 +0000 (13:37 +0000)
commit97390b9a81c06b3eff31a598d977233452d2b955
tree0a748d36fb0c78c79de599f826ffc211c4aaae6f
parent8f968f819b7fe6f5e54875bbd9cab7b2bf2bc970
Use a different mutex to protect the kqueue klist in logsoftc.

knote_locked() will call wakeup() and with it the SCHED_LOCK and by that
makes log_mtx no longer a leaf lock. By using an own lock for the klist
we can keep log_mtx a leaf lock and with that printf(9) can be used in
most contexts again.
OK mvs@
sys/kern/subr_log.c