svn commit: r328129 - head/sys/fs/nfsserver

Emmanuel Vadot manu at bidouilliste.com
Thu Jan 18 15:39:05 UTC 2018


On Thu, 18 Jan 2018 15:28:49 +0000 (UTC)
Emmanuel Vadot <manu at 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 <manu at bidouilliste.com> <manu at freebsd.org>


More information about the svn-src-all mailing list