PERFORCE change 166978 for review
    Marko Zec 
    zec at FreeBSD.org
       
    Mon Aug  3 18:29:23 UTC 2009
    
    
  
http://perforce.freebsd.org/chv.cgi?CH=166978
Change 166978 by zec at zec_tpx32 on 2009/08/03 18:28:56
	More hard-coding of NFS ops to vnet0.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/nfsclient/nfs_vnops.c#26 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/nfsclient/nfs_vnops.c#26 (text+ko) ====
@@ -1552,18 +1552,16 @@
 			*tl = txdr_unsigned(NFSV3CREATE_EXCLUSIVE);
 			tl = nfsm_build(u_int32_t *, NFSX_V3CREATEVERF);
 #ifdef INET
-#ifndef VIMAGE
+			CURVNET_SET(vnet0);
 			IN_IFADDR_RLOCK();
 			if (!TAILQ_EMPTY(&V_in_ifaddrhead))
 				*tl++ = IA_SIN(TAILQ_FIRST(&V_in_ifaddrhead))->sin_addr.s_addr;
 			else
 #endif
-#endif
 				*tl++ = create_verf;
 #ifdef INET
-#ifndef VIMAGE
 			IN_IFADDR_RUNLOCK();
-#endif
+			CURVNET_RESTORE();
 #endif
 			*tl = ++create_verf;
 		} else {
    
    
More information about the p4-projects
mailing list