aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/socketvar.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-02-16 21:42:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-02-16 21:42:53 +0000
commit1662c2ae80a31581bcdb97af02772476722022da (patch)
tree7396694973619f0bb9174732586a8d4d07acb3e2 /sys/sys/socketvar.h
parent0bfdca975c225723475f281e0a114eafae08c5ae (diff)
downloadsrc-1662c2ae80a31581bcdb97af02772476722022da.tar.gz
src-1662c2ae80a31581bcdb97af02772476722022da.zip
The locking annotations for struct sockbuf originally used the key from
struct socket. When sockbuf.h was moved out of socketvar.h, the locking key was no longer nearby. Instead, add a new key for sockbuf and use a single item for the socket buffer lock instead of separate entries for receive vs send buffers. Reviewed by: adrian Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D4901
Notes
Notes: svn path=/head/; revision=295676
Diffstat (limited to 'sys/sys/socketvar.h')
-rw-r--r--sys/sys/socketvar.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index f101849eb92d..870e5f967fdd 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -64,7 +64,6 @@ struct socket;
* (a) constant after allocation, no locking required.
* (b) locked by SOCK_LOCK(so).
* (c) locked by SOCKBUF_LOCK(&so->so_rcv).
- * (d) locked by SOCKBUF_LOCK(&so->so_snd).
* (e) locked by ACCEPT_LOCK().
* (f) not locked since integer reads/writes are atomic.
* (g) used only as a sleep/wakeup address, no value.