On Thu, 18 Jan 2018 15:28:49 +0000 (UTC)
Emmanuel Vadot <m...@freebsd.org> wrote:

> Author: manu
> Date: Thu Jan 18 15:28:49 2018
> New Revision: 328129
> URL: https://svnweb.freebsd.org/changeset/base/328129
> 
> Log:
>   nfs: Do not printf each time a lock structure is freed during module unload
>   
>   There can be a lot of those structures and printing a line each time we free
>   one on module unload.

 Finishing the sentence :

 There can be a lot of those structures and printing a line each time
we free one on module unload is really time consuming, especially when
you have a serial console plugged in.

  Sponsored by: Gandi.net

>   MFC after:  3 days
> 
> Modified:
>   head/sys/fs/nfsserver/nfs_nfsdstate.c
> 
> Modified: head/sys/fs/nfsserver/nfs_nfsdstate.c
> ==============================================================================
> --- head/sys/fs/nfsserver/nfs_nfsdstate.c     Thu Jan 18 15:15:35 2018        
> (r328128)
> +++ head/sys/fs/nfsserver/nfs_nfsdstate.c     Thu Jan 18 15:28:49 2018        
> (r328129)
> @@ -5799,10 +5799,8 @@ nfsrv_throwawayallstate(NFSPROC_T *p)
>        * Also, free up any remaining lock file structures.
>        */
>       for (i = 0; i < nfsrv_lockhashsize; i++) {
> -             LIST_FOREACH_SAFE(lfp, &nfslockhash[i], lf_hash, nlfp) {
> -                     printf("nfsd unload: fnd a lock file struct\n");
> +             LIST_FOREACH_SAFE(lfp, &nfslockhash[i], lf_hash, nlfp)
>                       nfsrv_freenfslockfile(lfp);
> -             }
>       }
>  }
>  


-- 
Emmanuel Vadot <m...@bidouilliste.com> <m...@freebsd.org>
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to