NFS serving off NTFS panic

Matthew Dillon dillon at apollo.backplane.com
Thu Dec 23 20:50:13 PST 2004


:Patch helped slightly. It no longer panics on nfsd start. It now panics 
:on remote mounting of the exported volume. The mount finishes fine, but 
:when you try to do anything and notice the client goes into deep space, 
:it's a sign the host died.
:
:Backtrace this time (doesn't appear too different, but I have untrained 
:eyes; my best debugging efforts involve printf):

    Ok.  I'm not sure if this is the correct fix, but I think it will
    work.  Please try it out.

					-Matt

Index: nfs_serv.c
===================================================================
RCS file: /cvs/src/sys/vfs/nfs/nfs_serv.c,v
retrieving revision 1.21
diff -u -r1.21 nfs_serv.c
--- nfs_serv.c	20 Dec 2004 18:37:59 -0000	1.21
+++ nfs_serv.c	24 Dec 2004 04:48:43 -0000
@@ -3285,8 +3285,10 @@
 		error = 0;
 		goto nfsmout;
 	}
-	vput(nvp);
-	nvp = NULL;
+	if (nvp) {
+		vput(nvp);
+		nvp = NULL;
+	}
 	    
 	dirlen = len = NFSX_V3POSTOPATTR + NFSX_V3COOKIEVERF + 2 * NFSX_UNSIGNED;
 	nfsm_reply(cnt);





More information about the Bugs mailing list