aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-11-26 18:00:26 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-11-26 18:00:26 +0000
commit3b1f974bfbf4d06aaa3bc4a1601345070ed4a293 (patch)
tree9eca6d5fdee9ffaa966bd0e2a72950420e7bc6dd /sys/sys/vnode.h
parent50696a6e8cbfdbf4a0d00f2f85f1951aa0d8e23d (diff)
downloadsrc-3b1f974bfbf4d06aaa3bc4a1601345070ed4a293.tar.gz
src-3b1f974bfbf4d06aaa3bc4a1601345070ed4a293.zip
Make max ticks for pause in vn_lock_pair() adjustable at runtime.
Reduce default value from hz / 10 to hz / 100. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=368073
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index b2265e34fac0..f77c5bc4827a 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -448,6 +448,8 @@ extern u_long desiredvnodes; /* number of vnodes desired */
extern struct uma_zone *namei_zone;
extern struct vattr va_null; /* predefined null vattr structure */
+extern u_int vn_lock_pair_pause_max;
+
#define VI_LOCK(vp) mtx_lock(&(vp)->v_interlock)
#define VI_LOCK_FLAGS(vp, flags) mtx_lock_flags(&(vp)->v_interlock, (flags))
#define VI_TRYLOCK(vp) mtx_trylock(&(vp)->v_interlock)