diff options
author | 2011-06-20 17:05:46 +0000 | |
---|---|---|
committer | 2011-06-20 17:05:46 +0000 | |
commit | dc6499960f1abce9a2bb5341f1d54c92a08fe7e6 (patch) | |
tree | 759e41d19f6f5456fb96ccf9da61d3286539147f /lib/libc/stdlib/malloc.c | |
parent | for now, move back to a private rw_lock rather than the disk_lock. (diff) | |
download | wireguard-openbsd-dc6499960f1abce9a2bb5341f1d54c92a08fe7e6.tar.xz wireguard-openbsd-dc6499960f1abce9a2bb5341f1d54c92a08fe7e6.zip |
serialize attach and detach of device sub-trees -- only one device
sub-tree may attach or detach at a time. attach and detach will sleep
against each other.
this is fixing (working around?) some bizzare corner cases that have
been seen (but not fully diagnosed) where the device trees, disk registration
subsystem, and other things could get messed up. one could argue though
that this serialization is a very good thing; it is easier than adding piles
of locks in various other places.
ok matthew jsing
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions