Add a MSGF_NORESCHED feature for lwkt thread-based message ports. The
commit361d01dd5c058891f09cf6bb45b05b74de98a54d
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 9 Sep 2008 07:21:57 +0000 (9 07:21 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 9 Sep 2008 07:21:57 +0000 (9 07:21 +0000)
tree098f30f8300fd819a24702c942d4daabbe84cb30
parentc730be2050146dae9bf5350b6f154244805cbb63
Add a MSGF_NORESCHED feature for lwkt thread-based message ports.  The
idea is to use it to allow certain async messages to be queued to higher
priority system threads and schedule those threads without forcing an
immediate reschedule.

The feature will be used by the new socket code to prevent cavitation
between a user process and system protocol thread when the user process
is write()ing a lot of data over the network.
sys/kern/lwkt_msgport.c
sys/kern/lwkt_thread.c
sys/sys/msgport.h
sys/sys/thread.h