async_rcvd: Move MSGF_DONE test under async rcvd spinlock
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 19 Mar 2013 07:56:11 +0000 (15:56 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 19 Mar 2013 07:56:11 +0000 (15:56 +0800)
commitf65f767c30993b1fc4cb440689529d824ba5a60b
treea872d9caf96f14e4103e22200f1fdd5c1cdc2c48
parent22f94c251748693aec3f893ddc0a787c4d52d1a9
async_rcvd: Move MSGF_DONE test under async rcvd spinlock

This flag is meant to be protected by the async rcvd spinlock; use
ssleep instead of tsleep if race happened.

Sysctl node kern.ipc.async_rcvd_drop_race is added to count the
number of async rcvd message dropping races.
sys/kern/uipc_msg.c