1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Unloading of the nfscl module is unsupported because newnfslock doesn't

support unloading. It's not trivial to implement newnfslock unloading so
for now just admit that unloading is unsupported and refuse to attempt
unload in all nfscl module event handlers.

Reviewed by:	rmacklem
Approved by:	trasz (mentor)
This commit is contained in:
Jaakko Heinonen 2009-10-20 15:06:18 +00:00
parent 349af4de7d
commit dd697cbf66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198291
2 changed files with 14 additions and 0 deletions

View File

@ -1243,6 +1243,10 @@ nfscl_modevent(module_t mod, int type, void *data)
break;
}
/*
* XXX: Unloading of nfscl module is unsupported.
*/
#if 0
ncl_call_invalcaches = NULL;
nfsd_call_nfscl = NULL;
/* and get rid of the mutexes */
@ -1250,6 +1254,9 @@ nfscl_modevent(module_t mod, int type, void *data)
mtx_destroy(&ncl_iod_mutex);
loaded = 0;
break;
#else
/* FALLTHROUGH */
#endif
default:
error = EOPNOTSUPP;
break;

View File

@ -87,6 +87,10 @@ extern struct nfsstats newnfsstats;
int
ncl_uninit(struct vfsconf *vfsp)
{
/*
* XXX: Unloading of nfscl module is unsupported.
*/
#if 0
int i;
/*
@ -104,6 +108,9 @@ ncl_uninit(struct vfsconf *vfsp)
mtx_unlock(&ncl_iod_mutex);
ncl_nhuninit();
return (0);
#else
return (EOPNOTSUPP);
#endif
}
void