From cfb2b7e76d2d97505ffb3e2ac6a43561e980f07a Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 10 Jul 2019 15:52:18 +0000 Subject: Stop sleeping at PUSER. This allows to enforce that sleeping priorities will now always be < PUSER. ok visa@, ratchov@ --- sys/kern/sys_futex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/sys_futex.c') diff --git a/sys/kern/sys_futex.c b/sys/kern/sys_futex.c index 1bf8fff081e..0fbb31ad9ef 100644 --- a/sys/kern/sys_futex.c +++ b/sys/kern/sys_futex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_futex.c,v 1.12 2019/02/06 15:11:20 mpi Exp $ */ +/* $OpenBSD: sys_futex.c,v 1.13 2019/07/10 15:52:17 mpi Exp $ */ /* * Copyright (c) 2016-2017 Martin Pieuchot @@ -254,7 +254,7 @@ futex_wait(uint32_t *uaddr, uint32_t val, const struct timespec *timeout, TAILQ_INSERT_TAIL(&f->ft_threads, p, p_fut_link); p->p_futex = f; - error = rwsleep(p, &ftlock, PUSER|PCATCH, "fsleep", (int)to_ticks); + error = rwsleep(p, &ftlock, PWAIT|PCATCH, "fsleep", (int)to_ticks); if (error == ERESTART) error = ECANCELED; else if (error == EWOULDBLOCK) { -- cgit v1.2.3