diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2010-09-18 11:18:42 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2010-09-18 11:18:42 +0000 |
commit | adb6aa9ab982e7554b40be4b28dbb9eacd5556f2 (patch) | |
tree | e4be35f12120ced317f8f104e33af91168f44699 /sys/sys/socketvar.h | |
parent | 19b8a6dbc117edbe70a75fdf1523f2fc0cc46a48 (diff) | |
download | src-adb6aa9ab982e7554b40be4b28dbb9eacd5556f2.tar.gz src-adb6aa9ab982e7554b40be4b28dbb9eacd5556f2.zip |
With reworking of the socket life cycle in 7.x, the need for a "sotryfree()"
was eliminated: all references to sockets are explicitly managed by sorele()
and the protocols. As such, garbage collect sotryfree(), and update
sofree() comments to make the new world order more clear.
MFC after: 3 days
Reported by: Anuranjan Shukla <anshukla at juniper dot net>
Notes
Notes:
svn path=/head/; revision=212822
Diffstat (limited to 'sys/sys/socketvar.h')
-rw-r--r-- | sys/sys/socketvar.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 889908315d25..6d6578b68abe 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -234,17 +234,6 @@ struct xsocket { } \ } while (0) -#define sotryfree(so) do { \ - ACCEPT_LOCK_ASSERT(); \ - SOCK_LOCK_ASSERT(so); \ - if ((so)->so_count == 0) \ - sofree(so); \ - else { \ - SOCK_UNLOCK(so); \ - ACCEPT_UNLOCK(); \ - } \ -} while(0) - /* * In sorwakeup() and sowwakeup(), acquire the socket buffer lock to * avoid a non-atomic test-and-wakeup. However, sowakeup is |