Author: rmacklem
Date: Mon Dec 30 22:39:29 2019
New Revision: 356210
URL: https://svnweb.freebsd.org/changeset/base/356210

Log:
  Add warning printf w.r.t. removal of sys/nfs/nfs_lock.c.
  
  The code in sys/nfs/nfs_lock.c has not been run by default since March 2008
  when it was replaced by the in kernel sys/nlm code.
  It uses Giant, so it needs to be removed before the FreeBSD 13 release.
  This will happen in a couple of months, since few if any users run
  the code anyhow and can easily switch to the default in kernel NFSLOCKD.

Modified:
  head/sys/nfs/nfs_lock.c

Modified: head/sys/nfs/nfs_lock.c
==============================================================================
--- head/sys/nfs/nfs_lock.c     Mon Dec 30 22:05:57 2019        (r356209)
+++ head/sys/nfs/nfs_lock.c     Mon Dec 30 22:39:29 2019        (r356210)
@@ -89,6 +89,8 @@ nfslock_open(struct cdev *dev, int oflags, int devtype
 {
        int error;
 
+       printf("WARNING: uses Giant and will be removed before FreeBSD 13\n"
+           "\tuse the kernel NFSLOCKD/nfslockd.ko\n");
        error = priv_check(td, PRIV_NFS_LOCKD);
        if (error)
                return (error);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to