Emmanuel Vadot 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.

 I will note that when I put a printf() like this in the code, it is because I
consider it an abnormal occurrence. It might be better to at least print
the message once.

For this case, normally all lock structures should go away when clients
unmount and unloading the nfsd module while there are active mounts
is not a safe practice. (Again NFSv4 isn't like NFSv3, there is server state
for NFSv4.)

rick

_______________________________________________
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