Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2007 12:04:13 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123315 for review
Message-ID:  <200707111204.l6BC4DiM096691@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123315

Change 123315 by zec@zec_tca51 on 2007/07/11 12:03:46

	Do not (re)initialize global state for local (unix) sockets
	for non-default vnets.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/uipc_usrreq.c#8 edit

Differences ...

==== //depot/projects/vimage/src/sys/kern/uipc_usrreq.c#8 (text+ko) ====

@@ -61,6 +61,7 @@
 
 #include "opt_ddb.h"
 #include "opt_mac.h"
+#include "opt_vimage.h"
 
 #include <sys/param.h>
 #include <sys/domain.h>
@@ -91,6 +92,7 @@
 #include <sys/un.h>
 #include <sys/unpcb.h>
 #include <sys/vnode.h>
+#include <sys/vimage.h>
 
 #ifdef DDB
 #include <ddb/ddb.h>
@@ -1651,6 +1653,10 @@
 unp_init(void)
 {
 
+#ifdef VIMAGE
+	if (curvnet != &vnet_0)
+		return;
+#endif
 	unp_zone = uma_zcreate("unpcb", sizeof(struct unpcb), NULL, NULL,
 	    NULL, NULL, UMA_ALIGN_PTR, 0);
 	if (unp_zone == NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707111204.l6BC4DiM096691>