Date: Fri, 27 Feb 2004 16:59:55 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 47775 for review Message-ID: <200402280059.i1S0xt1X026827@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=47775 Change 47775 by rwatson@rwatson_tislabs on 2004/02/27 16:59:15 Assert the socket lock directly in sofree() rather than relying on later unlock attempts to fail. Affected files ... .. //depot/projects/netperf_socket/sys/kern/uipc_socket.c#3 edit Differences ... ==== //depot/projects/netperf_socket/sys/kern/uipc_socket.c#3 (text+ko) ==== @@ -291,6 +291,7 @@ struct socket *so; { KASSERT(so->so_count == 0, ("socket %p so_count not 0", so)); + SOCK_LOCK_ASSERT(so); if (so->so_pcb || (so->so_state & SS_NOFDREF) == 0) { SOCK_UNLOCK(so);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402280059.i1S0xt1X026827>