diff options
author | lulf <lulf@FreeBSD.org> | 2008-05-24 14:51:30 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2008-05-24 14:51:30 +0000 |
commit | 0bf5a314d88ca0c5df2f71ef6beb6bc4067223f5 (patch) | |
tree | 236415ff1f2b33b277f193bd046392771ce6a318 /sys/netinet/udp_usrreq.c | |
parent | 197cf7b9ba868974b8a725176a65151c78822bea (diff) | |
download | FreeBSD-src-0bf5a314d88ca0c5df2f71ef6beb6bc4067223f5.zip FreeBSD-src-0bf5a314d88ca0c5df2f71ef6beb6bc4067223f5.tar.gz |
- Add locking to all filesystem operations in fdescfs and flag it as MPSAFE.
- Use proper synhronization primitives to protect the internal fdesc node cache
used in fdescfs.
- Properly initialize and uninitalize hash.
- Remove unused functions.
Since fdescfs might recurse on itself, adding proper locking to it needed some
tricky workarounds in some parts to make it work. For instance, a descriptor in
fdescfs could refer to an open descriptor to itself, thus forcing the thread to
recurse on vnode locks. Because of this, other race conditions also had to be
fixed.
Tested by: pho
Reviewed by: kib (mentor)
Approved by: kib (mentor)
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
0 files changed, 0 insertions, 0 deletions