From 65c127fd4271cd798bc359cf2193480e2f2da4f7 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 9 Jun 2021 00:34:46 -0400 Subject: [PATCH] fix timer leave flux --- sys/kern/kern_event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index c5c4c65dcefd..ed5acf26e233 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1134,13 +1134,14 @@ filt_timerexpire_l(struct knote *kn, bool proc_locked) } if (!proc_locked) PROC_UNLOCK(p); + + knote_leave_flux_ul(kn); return; } if (!proc_locked) PROC_UNLOCK(p); } kqtimer_sched_callout(kc); - knote_leave_flux_ul(kn); }