--- linux-2.4.21-43.EL/fs/nfsd/export.c 2006-05-14 17:16:21.000000000 -0400 +++ linux/fs/nfsd/export.c 2006-05-29 02:13:29.000000000 -0400 @@ -388,6 +388,10 @@ exp_unexport(struct nfsctl_export *nxp) exp_do_unexport(exp); err = 0; } + if (nxp->ex_flags & NFSEXP_FOLOCK) { + dprintk("exp_unexport: nfsd_lockd_unexport called\n"); + nfsd_lockd_unexport(clp); + } } exp_unlock(); --- linux-2.4.21-43.EL/include/linux/nfsd/export.h 2006-05-14 17:23:57.000000000 -0400 +++ linux/include/linux/nfsd/export.h 2006-05-29 02:12:07.000000000 -0400 @@ -42,7 +42,7 @@ #define NFSEXP_FSID 0x2000 #define NFSEXP_NOACL 0x8000 /* turn off acl support */ #define NFSEXP_ALLFLAGS 0xFFFF - +#define NFSEXP_FOLOCK 0x00010000 /* NLM lock failover */ #ifdef __KERNEL__