PERFORCE change 166977 for review
Marko Zec
zec at FreeBSD.org
Mon Aug 3 18:24:17 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=166977
Change 166977 by zec at zec_tpx32 on 2009/08/03 18:24:12
Back out CURVNET_SET() / CURVNET_RESTORE() sequence for which
I fail to see / recall any purpose.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/kern/vfs_export.c#15 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/kern/vfs_export.c#15 (text+ko) ====
@@ -48,13 +48,11 @@
#include <sys/mutex.h>
#include <sys/rwlock.h>
#include <sys/refcount.h>
-#include <sys/jail.h>
#include <sys/socket.h>
#include <sys/systm.h>
#include <sys/vnode.h>
#include <net/radix.h>
-#include <net/vnet.h>
static MALLOC_DEFINE(M_NETADDR, "export_host", "Export host address structure");
@@ -141,7 +139,6 @@
}
#endif
- CURVNET_SET(TD_TO_VNET(curthread)); /* XXX revisit */
i = sizeof(struct netcred) + argp->ex_addrlen + argp->ex_masklen;
np = (struct netcred *) malloc(i, M_NETADDR, M_WAITOK | M_ZERO);
saddr = (struct sockaddr *) (np + 1);
@@ -212,11 +209,9 @@
np->netc_numsecflavors = argp->ex_numsecflavors;
bcopy(argp->ex_secflavors, np->netc_secflavors,
sizeof(np->netc_secflavors));
- CURVNET_RESTORE();
return (0);
out:
free(np, M_NETADDR);
- CURVNET_RESTORE();
return (error);
}
More information about the p4-projects
mailing list