svn commit: r198290 - head/sys/fs/nfsclient

Jaakko Heinonen jh at FreeBSD.org
Tue Oct 20 15:01:46 UTC 2009


Author: jh
Date: Tue Oct 20 15:01:46 2009
New Revision: 198290
URL: http://svn.freebsd.org/changeset/base/198290

Log:
  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)

Modified:
  head/sys/fs/nfsclient/nfs_clport.c

Modified: head/sys/fs/nfsclient/nfs_clport.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clport.c	Tue Oct 20 14:57:26 2009	(r198289)
+++ head/sys/fs/nfsclient/nfs_clport.c	Tue Oct 20 15:01:46 2009	(r198290)
@@ -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);


More information about the svn-src-all mailing list