From owner-p4-projects@FreeBSD.ORG Fri Jun 26 21:47:35 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 278581065676; Fri, 26 Jun 2009 21:47:35 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB9BB1065674 for ; Fri, 26 Jun 2009 21:47:34 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outP.internet-mail-service.net (outp.internet-mail-service.net [216.240.47.239]) by mx1.freebsd.org (Postfix) with ESMTP id C09B58FC22 for ; Fri, 26 Jun 2009 21:47:34 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id B9556D392; Fri, 26 Jun 2009 14:47:52 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (unknown [64.244.102.2]) by idiom.com (Postfix) with ESMTP id 210C92D6011; Fri, 26 Jun 2009 14:47:34 -0700 (PDT) Message-ID: <4A4541F5.1050301@elischer.org> Date: Fri, 26 Jun 2009 15:47:33 -0600 From: Julian Elischer User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Marko Zec References: <200906261413.n5QED9j7023013@repoman.freebsd.org> In-Reply-To: <200906261413.n5QED9j7023013@repoman.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Perforce Change Reviews Subject: Re: PERFORCE change 165251 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 21:47:36 -0000 Marko Zec wrote: > http://perforce.freebsd.org/chv.cgi?CH=165251 > > Change 165251 by zec@zec_amdx4 on 2009/06/26 14:13:00 > > Allow for rpc.statd and rpc.lockd to be started, but > without doing any functional testing. Introduce a lot > curvnet recursions triggered by the above daemons that > have to be looked into and resolved. > > Affected files ... > > .. //depot/projects/vimage-commit2/src/sys/rpc/clnt_dg.c#6 edit > .. //depot/projects/vimage-commit2/src/sys/rpc/svc_dg.c#4 edit > > Differences ... > > ==== //depot/projects/vimage-commit2/src/sys/rpc/clnt_dg.c#6 (text+ko) ==== > > @@ -56,6 +56,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -197,11 +198,14 @@ > return (NULL); > } > > + CURVNET_SET(so->so_vnet); > if (!__rpc_socket2sockinfo(so, &si)) { > rpc_createerr.cf_stat = RPC_TLIERROR; > rpc_createerr.cf_error.re_errno = 0; > + CURVNET_RESTORE(); > return (NULL); > } > + CURVNET_RESTORE(); > > /* > * Find the receive and the send size > > ==== //depot/projects/vimage-commit2/src/sys/rpc/svc_dg.c#4 (text+ko) ==== > > @@ -56,6 +56,7 @@ > #include > #include > #include > +#include > > #include > > @@ -101,8 +102,10 @@ > struct sockaddr* sa; > int error; > > + CURVNET_SET(so->so_vnet); > if (!__rpc_socket2sockinfo(so, &si)) { > printf(svc_dg_str, svc_dg_err1); > + CURVNET_RESTORE(); > return (NULL); > } > /* > @@ -112,6 +115,7 @@ > recvsize = __rpc_get_t_size(si.si_af, si.si_proto, (int)recvsize); > if ((sendsize == 0) || (recvsize == 0)) { > printf(svc_dg_str, svc_dg_err2); > + CURVNET_RESTORE(); > return (NULL); > } > > @@ -142,6 +146,7 @@ > if (xprt) { > svc_xprt_free(xprt); > } > + CURVNET_RESTORE(); > return (NULL); > } > while leaving all your virtualization clues in place can we make it so that the nfs code always works on vnet0? I putr it to you that NFS itself should be virtualized as a separate major group than vnet.. but until that is done, use vnet0.