From 349af4de7ded6caee3530b2f5b62fa90ddb32afd Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Tue, 20 Oct 2009 15:01:46 +0000 Subject: [PATCH] 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) --- sys/fs/nfsclient/nfs_clport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 548ae410055..39f2f02c96b 100644 --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -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);