diff options
author | jmg <jmg@FreeBSD.org> | 2014-11-16 01:18:41 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2014-11-16 01:18:41 +0000 |
commit | 39fa4746e5349aa73a6e35b24f10161f05b192df (patch) | |
tree | c9eb370b66ee486fed9d9d7877b3e0129e7a8ecf /contrib/netbsd-tests/lib/libpthread/h_resolv.c | |
parent | d06e06b5c3ff76199ca5d2bc3bff82330b198948 (diff) | |
download | FreeBSD-src-39fa4746e5349aa73a6e35b24f10161f05b192df.zip FreeBSD-src-39fa4746e5349aa73a6e35b24f10161f05b192df.tar.gz |
prevent doing filter ops locking for staticly compiled filter ops...
This significantly reduces lock contention when adding/removing knotes
on busy multi-kq system... Next step is to cache these references per
kq.. i.e. kq refs it once and keeps a local ref count so that the same
refs don't get accessed by many cpus...
only allocate a knote when we might use it...
Add a new flag, _FORCEONESHOT.. This allows a thread to force the
delivery of another event in a safe manner, say waking up an idle http
connection to force it to be reaped...
If we are _DISABLE'ing a knote, don't bother to call f_event on it, it's
disabled, so won't be delivered anyways..
Tested by: adrian
Diffstat (limited to 'contrib/netbsd-tests/lib/libpthread/h_resolv.c')
0 files changed, 0 insertions, 0 deletions