svn commit: r202489 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sun Jan 17 17:01:01 UTC 2010


Author: tuexen
Date: Sun Jan 17 17:01:01 2010
New Revision: 202489
URL: http://svn.freebsd.org/changeset/base/202489

Log:
  MFC 199369
  
  Do not hold the lock longer than necessary.

Modified:
  stable/8/sys/netinet/sctputil.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/netinet/sctputil.c
==============================================================================
--- stable/8/sys/netinet/sctputil.c	Sun Jan 17 16:58:37 2010	(r202488)
+++ stable/8/sys/netinet/sctputil.c	Sun Jan 17 17:01:01 2010	(r202489)
@@ -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-all mailing list