diff options
author | jh <jh@FreeBSD.org> | 2009-10-20 15:06:18 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-10-20 15:06:18 +0000 |
commit | 7a2f24399a43897e9175a59961eec097338a6703 (patch) | |
tree | c73eac835e329a7c21d43cc2d9a7518b6ff38148 /sys/fs | |
parent | d857c58c9831f71c06c15d757bdcd4e3059b3ca4 (diff) | |
download | FreeBSD-src-7a2f24399a43897e9175a59961eec097338a6703.zip FreeBSD-src-7a2f24399a43897e9175a59961eec097338a6703.tar.gz |
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)
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsclient/nfs_clport.c | 7 | ||||
-rw-r--r-- | sys/fs/nfsclient/nfs_clsubs.c | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 39f2f02..e81c3bf 100644 --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -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; diff --git a/sys/fs/nfsclient/nfs_clsubs.c b/sys/fs/nfsclient/nfs_clsubs.c index a217a21..3cd7e5c 100644 --- a/sys/fs/nfsclient/nfs_clsubs.c +++ b/sys/fs/nfsclient/nfs_clsubs.c @@ -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 |