diff options
author | 2018-06-21 13:58:21 +0000 | |
---|---|---|
committer | 2018-06-21 13:58:21 +0000 | |
commit | 0ff991d2469a5e6b2ec82348ccae67e31455ec55 (patch) | |
tree | a2c3a76c752e360bc0c5b8e1bd312d11b5d02f3a /lib/libc | |
parent | Shuffle fields around to eliminate blanks spots resulting from (diff) | |
download | wireguard-openbsd-0ff991d2469a5e6b2ec82348ccae67e31455ec55.tar.xz wireguard-openbsd-0ff991d2469a5e6b2ec82348ccae67e31455ec55.zip |
Use atomic operations for updating cred structure reference counts
to make crfree() and crhold() MP-safe. Make crhold() a proper function.
Put the definition into file kern_prot.c to constrain the need of the
<sys/atomic.h> header.
While there, adjust the IPL of ucred_pool to avoid lock order problems
with the kernel lock (pointed out by kettenis@).
OK mpi@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions