summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2009-10-20 15:01:46 +0000
committerjh <jh@FreeBSD.org>2009-10-20 15:01:46 +0000
commitd857c58c9831f71c06c15d757bdcd4e3059b3ca4 (patch)
treec605b927158de15adad07a529e4cefb0ea7770fb
parentdaadfe0f12fdfaac71b81f6d346cf8682b9ca3ad (diff)
downloadFreeBSD-src-d857c58c9831f71c06c15d757bdcd4e3059b3ca4.zip
FreeBSD-src-d857c58c9831f71c06c15d757bdcd4e3059b3ca4.tar.gz
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)
-rw-r--r--sys/fs/nfsclient/nfs_clport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c
index 548ae41..39f2f02 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);
OpenPOWER on IntegriCloud