Implement lwkt_abortmsg() support. This function chases down a message and
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 15 Apr 2004 00:50:05 +0000 (00:50 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 15 Apr 2004 00:50:05 +0000 (00:50 +0000)
commite7906ee56848022e6be2e7361229b710a5f220ed
treef9bd84cb2ac0ab357618e1b57324472d898b760c
parentb3dd25cbb988f1bd16dd831c6b6feda7aefc60ed
Implement lwkt_abortmsg() support.  This function chases down a message and
marks it MSGF_ABORTED, requeuing it to its target port for abort reprocessing.
The chasedown may run through multiple message forwardings and even chase the
message all the way back to the reply port (in which case the abort becomes a
NOP).  The queueing of a replied message is delayed if there is an abort
chasing it down until the abort chasedown has caught up to the message.

Support MSGF_PCATCH in the default waitport function.  If a signal is pending,
lwkt_default_waitport() (the default assigned to mp_waitport) will request
a message abort.  Note that we still have to wait for the message to be
returned after requesting a message abort.

Also do some minor performance tuning and adjust or move some of the inlines
from msgport2.h into lwkt_msgport.c.
sys/kern/lwkt_msgport.c
sys/sys/msgport.h
sys/sys/msgport2.h