diff options
author | attilio <attilio@FreeBSD.org> | 2007-05-29 19:46:37 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2007-05-29 19:46:37 +0000 |
commit | 3fb9f2f2424e7b4c810d2c87037083f15adc0e3b (patch) | |
tree | e2c065503429d48f93d1ef0c1004e079c18752a8 /sys/kern/kern_sx.c | |
parent | aa33c7a9dd6cd7b5226eb98dbaa5229342450ab9 (diff) | |
download | FreeBSD-src-3fb9f2f2424e7b4c810d2c87037083f15adc0e3b.zip FreeBSD-src-3fb9f2f2424e7b4c810d2c87037083f15adc0e3b.tar.gz |
style(9) fixes for sx locks.
Approved by: jeff (mentor)
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r-- | sys/kern/kern_sx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c index 2a25fdc..421c1d1 100644 --- a/sys/kern/kern_sx.c +++ b/sys/kern/kern_sx.c @@ -165,7 +165,7 @@ sx_init_flags(struct sx *sx, const char *description, int opts) MPASS((opts & ~(SX_QUIET | SX_RECURSE | SX_NOWITNESS | SX_DUPOK | SX_NOPROFILE | SX_ADAPTIVESPIN)) == 0); - flags = LO_SLEEPABLE | LO_UPGRADABLE | LO_RECURSABLE; + flags = LO_RECURSABLE | LO_SLEEPABLE | LO_UPGRADABLE; if (opts & SX_DUPOK) flags |= LO_DUPOK; if (opts & SX_NOPROFILE) @@ -535,7 +535,7 @@ _sx_xlock_hard(struct sx *sx, uintptr_t tid, const char *file, int line) CTR2(KTR_LOCK, "%s: %p resuming from sleep queue", __func__, sx); } - + GIANT_RESTORE(); lock_profile_obtain_lock_success(&(sx)->lock_object, contested, waitstart, file, line); |