diff options
author | bz <bz@FreeBSD.org> | 2011-02-16 21:29:13 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2011-02-16 21:29:13 +0000 |
commit | b9b7d3e93a251adacd363eaf9d23963ec7467075 (patch) | |
tree | e312f60d853b2306ae67fe2988280d1dbc41c9cf /sys/rpc/svc_generic.c | |
parent | ea2186a5ebf08dfc9eddc393caec2d574ac8ce0b (diff) | |
download | FreeBSD-src-b9b7d3e93a251adacd363eaf9d23963ec7467075.zip FreeBSD-src-b9b7d3e93a251adacd363eaf9d23963ec7467075.tar.gz |
Mfp4 CH=177274,177280,177284-177285,177297,177324-177325
VNET socket push back:
try to minimize the number of places where we have to switch vnets
and narrow down the time we stay switched. Add assertions to the
socket code to catch possibly unset vnets as seen in r204147.
While this reduces the number of vnet recursion in some places like
NFS, POSIX local sockets and some netgraph, .. recursions are
impossible to fix.
The current expectations are documented at the beginning of
uipc_socket.c along with the other information there.
Sponsored by: The FreeBSD Foundation
Sponsored by: CK Software GmbH
Reviewed by: jhb
Tested by: zec
Tested by: Mikolaj Golub (to.my.trociny gmail.com)
MFC after: 2 weeks
Diffstat (limited to 'sys/rpc/svc_generic.c')
-rw-r--r-- | sys/rpc/svc_generic.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/rpc/svc_generic.c b/sys/rpc/svc_generic.c index e6e8acd..f8b70de 100644 --- a/sys/rpc/svc_generic.c +++ b/sys/rpc/svc_generic.c @@ -230,14 +230,11 @@ svc_tli_create( /* * It is an open socket. Get the transport info. */ - CURVNET_SET(so->so_vnet); if (!__rpc_socket2sockinfo(so, &si)) { printf( "svc_tli_create: could not get transport information\n"); - CURVNET_RESTORE(); return (NULL); } - CURVNET_RESTORE(); } /* @@ -264,9 +261,7 @@ svc_tli_create( "svc_tli_create: could not bind to requested address\n"); goto freedata; } - CURVNET_SET(so->so_vnet); solisten(so, (int)bindaddr->qlen, curthread); - CURVNET_RESTORE(); } } |