svn commit: r199369 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Tue Nov 17 13:05:51 UTC 2009
Author: tuexen
Date: Tue Nov 17 13:05:51 2009
New Revision: 199369
URL: http://svn.freebsd.org/changeset/base/199369
Log:
Do not hold the lock longer than necessary.
Approved by: rrs (mentor)
MFC after: 1 month
Modified:
head/sys/netinet/sctputil.c
Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Tue Nov 17 13:04:05 2009 (r199368)
+++ head/sys/netinet/sctputil.c Tue Nov 17 13:05:51 2009 (r199369)
@@ -6156,11 +6156,11 @@ sctp_dynamic_set_primary(struct sockaddr
* newest first :-0
*/
LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr);
+ SCTP_IPI_ITERATOR_WQ_UNLOCK();
sctp_timer_start(SCTP_TIMER_TYPE_ADDR_WQ,
(struct sctp_inpcb *)NULL,
(struct sctp_tcb *)NULL,
(struct sctp_nets *)NULL);
- SCTP_IPI_ITERATOR_WQ_UNLOCK();
return (0);
}
More information about the svn-src-head
mailing list