summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2009-05-30 23:52:23 +0000
committerattilio <attilio@FreeBSD.org>2009-05-30 23:52:23 +0000
commite6a06610ffed1cb06d6b1cfa7d9350bde5926b4d (patch)
tree98bac9b1a3ace0dd15c05a8aa1e79de79f85e0b2
parente2703a8f9f411f29eef2c523e34a0fa79916c631 (diff)
downloadFreeBSD-src-e6a06610ffed1cb06d6b1cfa7d9350bde5926b4d.zip
FreeBSD-src-e6a06610ffed1cb06d6b1cfa7d9350bde5926b4d.tar.gz
Remove the now invalid (and possibly unused) debug.mpsafevfs
sysctl/tunable. Reviewed by: emaste Sponsored by: Sandvine Incorporated
-rw-r--r--UPDATING4
-rw-r--r--sys/kern/vfs_subr.c9
-rw-r--r--sys/sys/mount.h4
3 files changed, 5 insertions, 12 deletions
diff --git a/UPDATING b/UPDATING
index 25d1adb..95869d5 100644
--- a/UPDATING
+++ b/UPDATING
@@ -23,6 +23,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8.x IS SLOW:
ln -s aj /etc/malloc.conf.)
20090530:
+ Remove the tunable/sysctl debug.mpsafevfs as its initial purpose
+ is no more valid.
+
+20090530:
Add VOP_ACCESSX(9). File system modules need to be rebuilt.
Bump __FreeBSD_version to 800094.
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index cee1f2a..8d694f8 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -115,15 +115,6 @@ static int vfs_knllocked(void *arg);
static void destroy_vpollinfo(struct vpollinfo *vi);
/*
- * Enable Giant pushdown based on whether or not the vm is mpsafe in this
- * build. Without mpsafevm the buffer cache can not run Giant free.
- */
-int mpsafe_vfs = 1;
-TUNABLE_INT("debug.mpsafevfs", &mpsafe_vfs);
-SYSCTL_INT(_debug, OID_AUTO, mpsafevfs, CTLFLAG_RD, &mpsafe_vfs, 0,
- "MPSAFE VFS");
-
-/*
* Number of vnodes in existence. Increased whenever getnewvnode()
* allocates a new vnode, decreased on vdestroy() called on VI_DOOMed
* vnode.
diff --git a/sys/sys/mount.h b/sys/sys/mount.h
index ad7121e..f59a06e 100644
--- a/sys/sys/mount.h
+++ b/sys/sys/mount.h
@@ -619,10 +619,8 @@ vfs_statfs_t __vfs_statfs;
({if (*(MP)->mnt_op->vfs_susp_clean != NULL) \
(*(MP)->mnt_op->vfs_susp_clean)(MP); })
-extern int mpsafe_vfs;
-
#define VFS_NEEDSGIANT_(MP) \
- (!mpsafe_vfs || ((MP) != NULL && ((MP)->mnt_kern_flag & MNTK_MPSAFE) == 0))
+ ((MP) != NULL && ((MP)->mnt_kern_flag & MNTK_MPSAFE) == 0)
#define VFS_NEEDSGIANT(MP) __extension__ \
({ \
OpenPOWER on IntegriCloud