Use `nowake' as tsleep_nsec(9) ident. It has no corresponding wakeup(9).
authormvs <mvs@openbsd.org>
Thu, 18 Jan 2024 08:46:41 +0000 (08:46 +0000)
committermvs <mvs@openbsd.org>
Thu, 18 Jan 2024 08:46:41 +0000 (08:46 +0000)
ok bluhm

sys/net/if_wg.c

index dcd5025..a35f435 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_wg.c,v 1.35 2024/01/01 18:47:02 mvs Exp $ */
+/*     $OpenBSD: if_wg.c,v 1.36 2024/01/18 08:46:41 mvs Exp $ */
 
 /*
  * Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
@@ -518,7 +518,7 @@ wg_peer_destroy(struct wg_peer *peer)
                        continue;
                }
                NET_UNLOCK();
-               tsleep_nsec(sc, PWAIT, "wg_ifq", 1000);
+               tsleep_nsec(&nowake, PWAIT, "wg_ifq", 1000);
                NET_LOCK();
        }
        NET_UNLOCK();