Do not use wakeup_proc() outside of the sleep machinery. Just use
authorclaudio <claudio@openbsd.org>
Thu, 25 May 2023 07:45:33 +0000 (07:45 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 25 May 2023 07:45:33 +0000 (07:45 +0000)
wakeup_one().
OK mpi@

sys/kern/vfs_sync.c

index ff1b072..326fe9e 100644 (file)
@@ -1,4 +1,4 @@
-/*       $OpenBSD: vfs_sync.c,v 1.68 2022/08/14 01:58:28 jsg Exp $  */
+/*       $OpenBSD: vfs_sync.c,v 1.69 2023/05/25 07:45:33 claudio Exp $  */
 
 /*
  *  Portions of this code are:
@@ -245,7 +245,7 @@ int
 speedup_syncer(void)
 {
        if (syncerproc)
-               wakeup_proc(syncerproc, &syncer_chan);
+               wakeup_one(&syncer_chan);
        if (rushjob < syncdelay / 2) {
                rushjob += 1;
                stat_rush_requests += 1;