Fix ordering of nfscl_modevent() and ncl_uninit(). nfscl_modevent() must

be called after ncl_uninit() when unloading the nfscl module because
ncl_uninit() uses ncl_iod_mutex which is destroyed in nfscl_modevent().

Reviewed by:	rmacklem
Approved by:	trasz (mentor)
This commit is contained in:
Jaakko Heinonen 2009-10-20 15:01:46 +00:00
parent 417612e0e4
commit 349af4de7d

View file

@ -1261,7 +1261,7 @@ static moduledata_t nfscl_mod = {
nfscl_modevent,
NULL,
};
DECLARE_MODULE(nfscl, nfscl_mod, SI_SUB_VFS, SI_ORDER_ANY);
DECLARE_MODULE(nfscl, nfscl_mod, SI_SUB_VFS, SI_ORDER_FIRST);
/* So that loader and kldload(2) can find us, wherever we are.. */
MODULE_VERSION(nfscl, 1);