aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2013-05-09 16:28:18 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2013-05-09 16:28:18 +0000
commite63091ea6cec61bb108fd38131eae09d982feffa (patch)
tree535b854fe8328f0254c6ce52fdd275b2f12140ed /sys/sys/lock.h
parenta28232e3039b6e2266179aced57a9f2a38aca034 (diff)
downloadsrc-e63091ea6cec61bb108fd38131eae09d982feffa.tar.gz
src-e63091ea6cec61bb108fd38131eae09d982feffa.zip
Add option WITNESS_NO_VNODE to suppress printing LORs between VNODE
locks. To support this, VNODE locks are created with the LK_IS_VNODE flag. This flag is propagated down using the LO_IS_VNODE flag. Note that WITNESS still records the LOR. Only the printing and the optional entering into the kernel debugger is bypassed with the WITNESS_NO_VNODE option.
Notes
Notes: svn path=/head/; revision=250411
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index ab0122df7f74..07651ebadece 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -79,6 +79,7 @@ struct lock_class {
#define LO_SLEEPABLE 0x00100000 /* Lock may be held while sleeping. */
#define LO_UPGRADABLE 0x00200000 /* Lock may be upgraded/downgraded. */
#define LO_DUPOK 0x00400000 /* Don't check for duplicate acquires */
+#define LO_IS_VNODE 0x00800000 /* Tell WITNESS about a VNODE lock */
#define LO_CLASSMASK 0x0f000000 /* Class index bitmask. */
#define LO_NOPROFILE 0x10000000 /* Don't profile this lock */