projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
853176e
)
usched_bsd4 - fix incorrect use of PINTERLOCKED tsleep
author
Alex Hornung <alex@alexhornung.com>
Fri, 24 Aug 2012 06:44:43 +0000 (06:44 +0000)
committer
Alex Hornung <alex@alexhornung.com>
Fri, 24 Aug 2012 06:44:43 +0000 (06:44 +0000)
* The first tsleep in sched_thread has not been interlocked, so it is
not valid to call tsleep(..., PINTERLOCKED, ...).
sys/kern/usched_bsd4.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/kern/usched_bsd4.c
b/sys/kern/usched_bsd4.c
index
af02b68
..
21ffcc4
100644
(file)
--- a/
sys/kern/usched_bsd4.c
+++ b/
sys/kern/usched_bsd4.c
@@
-1731,7
+1731,7
@@
sched_thread(void *dummy)
*/
lwkt_setpri_self(TDPRI_USER_SCHEDULER);
- tsleep(&dd->helper_thread, PINTERLOCKED, "sched_thread_sleep", 0);
+ tsleep(&dd->helper_thread, 0, "sched_thread_sleep", 0);
for (;;) {
//again: