From becffb36cc12e1e87dc2c114ccbc07f75c0e8bbe Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Thu, 18 Jan 2018 15:28:49 +0000 Subject: [PATCH] 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. MFC after: 3 days --- sys/fs/nfsserver/nfs_nfsdstate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/fs/nfsserver/nfs_nfsdstate.c b/sys/fs/nfsserver/nfs_nfsdstate.c index 06d08518a19..203bdc8e060 100644 --- a/sys/fs/nfsserver/nfs_nfsdstate.c +++ b/sys/fs/nfsserver/nfs_nfsdstate.c @@ -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); - } } }