diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2007-09-08 11:35:11 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2007-09-08 11:35:11 +0000 |
commit | ceaad40ae729dea2c5d8ffcfdd45bb96fb8969d2 (patch) | |
tree | 33156f38f2aa559546f6d475b9777be0710945b3 /sys/netinet6/sctp6_usrreq.c | |
parent | fadab4537044dd94fca7569d577c43a0688f6c4c (diff) | |
download | src-ceaad40ae729dea2c5d8ffcfdd45bb96fb8969d2.tar.gz src-ceaad40ae729dea2c5d8ffcfdd45bb96fb8969d2.zip |
- Locking compatiability changes. This involves adding
additional flags to many function calls. The flags only
get used in BSD when we compile with lock testing. These
flags allow apple to escape the "giant" lock it holds on
the socket and have more fine-grained locking in the NKE.
It also allows us to test (with witness) the locking used
by apple via a compile switch (manually applied).
Approved by: re@freebsd.org(B Mah)
Notes
Notes:
svn path=/head/; revision=172090
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index ac74d64d0ede..2d4c82c7d7cc 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -139,7 +139,7 @@ sctp6_input(struct mbuf **i_pak, int *offp, int proto) /* in6p's ref-count increased && stcb locked */ if ((in6p) && (stcb)) { sctp_send_packet_dropped(stcb, net, m, iphlen, 1); - sctp_chunk_output((struct sctp_inpcb *)in6p, stcb, 2); + sctp_chunk_output((struct sctp_inpcb *)in6p, stcb, SCTP_OUTPUT_FROM_INPUT_ERROR, SCTP_SO_NOT_LOCKED); } else if ((in6p != NULL) && (stcb == NULL)) { refcount_up = 1; } @@ -911,7 +911,7 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p) /* initialize authentication parameters for the assoc */ sctp_initialize_auth_params(inp, stcb); - sctp_send_initiate(inp, stcb); + sctp_send_initiate(inp, stcb, SCTP_SO_LOCKED); SCTP_TCB_UNLOCK(stcb); return error; } |