uipc: Use token for rights counting
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 6 Nov 2015 08:04:16 +0000 (16:04 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 6 Nov 2015 08:05:37 +0000 (16:05 +0800)
commitb4d93c31157e63c9cb52882c88a3589135d22eab
treea33c00f51fd42e06577fc44885c4d44d9f7441cb
parent47304def14e2e8fbade4bb4c46a90d97186cdffc
uipc: Use token for rights counting

This is mainly used to avoid races stemming from f_msgcount accessing
w/o unp_spin.
sys/kern/uipc_usrreq.c