Use M_WAITOK and BUS_DMA_WAITOK instead of M_NOWAIT and BUS_DMA_NOWAIT in
places where we're allowed to sleep. Hopefully this fixes the
qwx0: failed to init DP: 12
issue that some of us occasionally experience.
ok stsp@
Allocate the psegs that are reserved for the pagedeamon only if no other
psegs are available. Let the pagedeamon only start a new swap cluster
if there are still at least two reserved slots available. This goes a
long way towards guaranteeing that we have the resources to actually
write out the swap cluster once it is filled. This is important since
the code that drops a cluster may need to acquire an rwlock, which means
the pagedaemon could sleep. This is undesirable and may even lead to
deadlocks.
Note that there still is a possibility that we may fail to allocate a buf
from the bufpool, which would lead us to the same undesirable path. So
far I've not been able to hit that case.
ok claudio@
Add evtag functions to libeventextra.
In base libevent event_tagging.c has been removed. Bring it back
into libeventextra which contains the features missing in base.
This avoids undefined references when building benchmarks/httperf.
OK sthen@
Do not ship evtag functions in base libevent.
Upstream libevent 2.1.13-stable contains several security fixes.
Our reduced libevent 1.4.15-stable does not contain the affected
code. The functions in event_tagging.c are only used by evrpc which
we have removed from libevent. As the attack vectors for the
upstream fixes go through evrpc to evtag, better remove this dead
code and do not export it in our libevent. Major library bump
needed.
OK dlg@ claudio@ sthen@
der_len needs to be int so that the error check around i2d_X509_PUBKEY()
works. Only positive der_len values make it to base64_encode() where it
is promoted to size_t which is fine.
OK tb@
ASnum are unsigned 32bit values. Use %u to print them not %d.
Also use json_do_uint() just to be consistent. The json encoder operates
with 64bit values so it does not matter there as much as it does for printf.
With and OK tb@
- fix syntax in example login_ldap.conf file, it had :\ on a line
presumably when converted from getcap in the ports version
- switch to a more unix-y sample filter, and add a commented-out example
for ActiveDirectory
based on a diff from Chaz Kettleson which was ok with tweaks by claudio@,
and incorporating feedback from Andrew Daugherity