diff options
author | marcel <marcel@FreeBSD.org> | 2013-05-09 16:28:18 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2013-05-09 16:28:18 +0000 |
commit | bd49099038824e1817f3a5da01c52f82eebe392e (patch) | |
tree | 535b854fe8328f0254c6ce52fdd275b2f12140ed /sys/sys/lock.h | |
parent | ce591b770b2ff012762738cb1f1bfeea4003d36c (diff) | |
download | FreeBSD-src-bd49099038824e1817f3a5da01c52f82eebe392e.zip FreeBSD-src-bd49099038824e1817f3a5da01c52f82eebe392e.tar.gz |
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.
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r-- | sys/sys/lock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h index ab0122d..07651eb 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 */ |