Use nfsrv_destroycache() only once, else it crashes the server.

PR:		kern/118152
Submitted by:	Bjoern Groenvall <bg at sics dot se>
Approved by:	imp (mentor, a while ago already), jhb
MFC After:	3 days
This commit is contained in:
Remko Lodder 2008-01-18 17:03:36 +00:00
parent ce3b9e3aea
commit af3e1b9f22

View File

@ -569,7 +569,6 @@ nfsrv_modevent(module_t mod, int type, void *data)
syscall_deregister(&nfssvc_offset, &nfssvc_prev_sysent);
callout_drain(&nfsrv_callout);
nfsrv_destroycache(); /* Free the server request cache */
nfsrv_destroycache(); /* Free the server request cache */
mtx_destroy(&nfsd_mtx);
break;
default: