summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sx.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-05-19 18:34:24 +0000
committerjhb <jhb@FreeBSD.org>2007-05-19 18:34:24 +0000
commitb98c11a0e27bb22619ae577c10aac9bded418849 (patch)
treec003b232f260796d193e5134424f7e43a2d394a8 /sys/kern/kern_sx.c
parent2a4c24267a1ca247b87c6b192610e2ebe1faba70 (diff)
downloadFreeBSD-src-b98c11a0e27bb22619ae577c10aac9bded418849.zip
FreeBSD-src-b98c11a0e27bb22619ae577c10aac9bded418849.tar.gz
Oops, didn't include SX_ADAPTIVESPIN in the list of valid flags for the
assert in sx_init_flags(). Submitted by: attilio
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r--sys/kern/kern_sx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index 3a0973a..9c3b922 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -171,7 +171,7 @@ sx_init_flags(struct sx *sx, const char *description, int opts)
int flags;
MPASS((opts & ~(SX_QUIET | SX_RECURSE | SX_NOWITNESS | SX_DUPOK |
- SX_NOPROFILE)) == 0);
+ SX_NOPROFILE | SX_ADAPTIVESPIN)) == 0);
flags = LO_SLEEPABLE | LO_UPGRADABLE | LO_RECURSABLE;
if (opts & SX_DUPOK)
OpenPOWER on IntegriCloud