summaryrefslogtreecommitdiff
path: root/sys/kern/sched_bsd.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-10-15 07:49:56 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-10-15 07:49:56 +0000
commit6f76ca994fa53d2c8783bd79a0a0792144a99a7f (patch)
treec957f3000a3716e84c7368696e9d2c63d1687ebb /sys/kern/sched_bsd.c
parentdb6f724c787babe1dc616942342c02633e6f2b9d (diff)
Stop asserting that the NET_LOCK() shouldn't be held in yield().
This create too many false positive when setting pool_debug=2. Prodded by deraadt@, ok mvs@
Diffstat (limited to 'sys/kern/sched_bsd.c')
-rw-r--r--sys/kern/sched_bsd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/sched_bsd.c b/sys/kern/sched_bsd.c
index 888197d5fc1..1a5185b72f4 100644
--- a/sys/kern/sched_bsd.c
+++ b/sys/kern/sched_bsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sched_bsd.c,v 1.63 2020/05/30 14:42:59 solene Exp $ */
+/* $OpenBSD: sched_bsd.c,v 1.64 2020/10/15 07:49:55 mpi Exp $ */
/* $NetBSD: kern_synch.c,v 1.37 1996/04/22 01:38:37 christos Exp $ */
/*-
@@ -301,8 +301,6 @@ yield(void)
struct proc *p = curproc;
int s;
- NET_ASSERT_UNLOCKED();
-
SCHED_LOCK(s);
setrunqueue(p->p_cpu, p, p->p_usrpri);
p->p_ru.ru_nvcsw++;