summaryrefslogtreecommitdiffstats
path: root/sys/nlm
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-10-22 17:50:54 +0000
committerkib <kib@FreeBSD.org>2012-10-22 17:50:54 +0000
commit560aa751e0f5cfef868bdf3fab01cdbc5169ef82 (patch)
tree6e9ef0a47c5e91d26227820c50c9767e84550821 /sys/nlm
parentca71b68ea40c83f641d6485e027368568f244197 (diff)
downloadFreeBSD-src-560aa751e0f5cfef868bdf3fab01cdbc5169ef82.zip
FreeBSD-src-560aa751e0f5cfef868bdf3fab01cdbc5169ef82.tar.gz
Remove the support for using non-mpsafe filesystem modules.
In particular, do not lock Giant conditionally when calling into the filesystem module, remove the VFS_LOCK_GIANT() and related macros. Stop handling buffers belonging to non-mpsafe filesystems. The VFS_VERSION is bumped to indicate the interface change which does not result in the interface signatures changes. Conducted and reviewed by: attilio Tested by: pho
Diffstat (limited to 'sys/nlm')
-rw-r--r--sys/nlm/nlm_prot_impl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c
index b1178ac..dca0300 100644
--- a/sys/nlm/nlm_prot_impl.c
+++ b/sys/nlm/nlm_prot_impl.c
@@ -1769,7 +1769,6 @@ nlm_convert_to_fhandle_t(fhandle_t *fhp, struct netobj *p)
struct vfs_state {
struct mount *vs_mp;
struct vnode *vs_vp;
- int vs_vfslocked;
int vs_vnlocked;
};
@@ -1786,7 +1785,6 @@ nlm_get_vfs_state(struct nlm_host *host, struct svc_req *rqstp,
if (!vs->vs_mp) {
return (ESTALE);
}
- vs->vs_vfslocked = VFS_LOCK_GIANT(vs->vs_mp);
/* accmode == 0 means don't check, since it is an unlock. */
if (accmode != 0) {
@@ -1862,7 +1860,6 @@ nlm_release_vfs_state(struct vfs_state *vs)
}
if (vs->vs_mp)
vfs_rel(vs->vs_mp);
- VFS_UNLOCK_GIANT(vs->vs_vfslocked);
}
static nlm4_stats
OpenPOWER on IntegriCloud