The blocking futex operation is called FUTEX_WAIT.  I think "ftxwait"
is literally the perfect wmesg.

"fsleep" is a lot less obvious.

ok?

Index: sys_futex.c
===================================================================
RCS file: /cvs/src/sys/kern/sys_futex.c,v
retrieving revision 1.21
diff -u -p -r1.21 sys_futex.c
--- sys_futex.c 14 Aug 2022 01:58:28 -0000      1.21
+++ sys_futex.c 23 Dec 2022 14:33:43 -0000
@@ -256,7 +256,7 @@ futex_wait(uint32_t *uaddr, uint32_t val
        TAILQ_INSERT_TAIL(&f->ft_threads, p, p_fut_link);
        p->p_futex = f;
 
-       error = rwsleep_nsec(p, &ftlock, PWAIT|PCATCH, "fsleep", nsecs);
+       error = rwsleep_nsec(p, &ftlock, PWAIT|PCATCH, "ftxwait", nsecs);
        if (error == ERESTART)
                error = ECANCELED;
        else if (error == EWOULDBLOCK) {

Reply via email to