[ewg] [GIT PULL ofed-1.4.1] fix for starting/stopping NFS daemons

Steve Wise swise at opengridcomputing.com
Tue Mar 31 15:17:57 PDT 2009


Vlad,

This commit fixes bug 1577.  Please pull the commit from

ssh://69.55.231.68/~swise/scm/ofed-1.4.git ofed_1_4

Thanks,

Steve.




-------- Original Message --------
Date: 	Tue, 31 Mar 2009 17:12:03 -0500
From: 	swise at build.ogc.int
To: 	swise at opengridcomputing.com



commit 92f46827ee4a45899383001b4bd1ecb4c52beffe
Author: Steve Wise <swise at opengridcomputing.com>
Date:   Tue Mar 31 14:36:17 2009 -0500

    NFSRDMA: Correctly reference lockd service.
    
    Signed-off-by: Steve Wise <swise at opengridcomputing.com>

diff --git a/kernel_patches/fixes/nfsrdma_zz_0100_lockd_ref_fix.patch b/kernel_patches/fixes/nfsrdma_zz_0100_lockd_ref_fix.patch
new file mode 100644
index 0000000..25b9134
--- /dev/null
+++ b/kernel_patches/fixes/nfsrdma_zz_0100_lockd_ref_fix.patch
@@ -0,0 +1,20 @@
+--- a/fs/nfsd/nfsctl.c	2009-03-29 18:53:02.000000000 -0500
++++ b/fs/nfsd/nfsctl.c	2009-03-31 10:44:32.000000000 -0500
+@@ -657,6 +657,9 @@ static ssize_t __write_ports(struct file
+ 					/* Give a reasonable perror msg for
+ 					 * bad transport string */
+ 					err = -EPROTONOSUPPORT;
++				if (err >= 0)
++					lockd_up(0);
++				nfsd_serv->sv_nrthreads--;
+ 			}
+ 			return err < 0 ? err : 0;
+ 		}
+@@ -679,6 +682,7 @@ static ssize_t __write_ports(struct file
+ 					svc_close_xprt(xprt);
+ 					svc_xprt_put(xprt);
+ 					err = 0;
++					lockd_down();
+ 				} else
+ 					err = -ENOTCONN;
+ 			}




More information about the ewg mailing list