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
This commit is contained in:
Emmanuel Vadot 2018-01-18 15:28:49 +00:00
parent 3705dda7e4
commit becffb36cc

View file

@ -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);
}
}
}