Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2009 18:29:21 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 166978 for review
Message-ID:  <200908031829.n73ITLBd086430@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=166978

Change 166978 by zec@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 {



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