Author: rmacklem
Date: Thu Apr 27 21:27:20 2017
New Revision: 317524
URL: https://svnweb.freebsd.org/changeset/base/317524

Log:
  MFC: r316782
  Add call to svcpool_close() for the NFSv4 callback pool (svcpool_nfscbd).
  
  A function called svcpool_close() was added to the server side krpc by
  r313735, so that a pool could be closed without destroying the data 
structures.
  This little patch adds a call to it for the callback pool (svcpool_nfscbd),
  so that the nfscbd daemon can be killed/restarted and continue to work
  correctly.

Modified:
  stable/10/sys/fs/nfsclient/nfs_clkrpc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/fs/nfsclient/nfs_clkrpc.c
==============================================================================
--- stable/10/sys/fs/nfsclient/nfs_clkrpc.c     Thu Apr 27 21:24:50 2017        
(r317523)
+++ stable/10/sys/fs/nfsclient/nfs_clkrpc.c     Thu Apr 27 21:27:20 2017        
(r317524)
@@ -278,6 +278,11 @@ nfsrvd_cbinit(int terminating)
                while (nfs_numnfscbd > 0)
                        msleep(&nfs_numnfscbd, NFSDLOCKMUTEXPTR, PZERO, 
                            "nfscbdt", 0);
+               if (nfscbd_pool != NULL) {
+                       NFSD_UNLOCK();
+                       svcpool_close(nfscbd_pool);
+                       NFSD_LOCK();
+               }
        }
 
        if (nfscbd_pool == NULL) {
_______________________________________________
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