svn commit: r308468 - stable/11/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Nov 9 16:46:59 UTC 2016
Author: kib
Date: Wed Nov 9 16:46:57 2016
New Revision: 308468
URL: https://svnweb.freebsd.org/changeset/base/308468
Log:
MFC r308228:
Remove remnants of the recursive sleep support.
Modified:
stable/11/sys/kern/kern_synch.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/kern_synch.c
==============================================================================
--- stable/11/sys/kern/kern_synch.c Wed Nov 9 16:45:06 2016 (r308467)
+++ stable/11/sys/kern/kern_synch.c Wed Nov 9 16:46:57 2016 (r308468)
@@ -170,13 +170,7 @@ _sleep(void *ident, struct lock_object *
catch = priority & PCATCH;
pri = priority & PRIMASK;
- /*
- * If we are already on a sleep queue, then remove us from that
- * sleep queue first. We have to do this to handle recursive
- * sleeps.
- */
- if (TD_ON_SLEEPQ(td))
- sleepq_remove(td, td->td_wchan);
+ KASSERT(!TD_ON_SLEEPQ(td), ("recursive sleep"));
if ((uint8_t *)ident >= &pause_wchan[0] &&
(uint8_t *)ident <= &pause_wchan[MAXCPU - 1])
More information about the svn-src-stable-11
mailing list