summaryrefslogtreecommitdiff
path: root/kern/llsync.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/llsync.h')
-rw-r--r--kern/llsync.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/llsync.h b/kern/llsync.h
index 0d7438bb..57ad5589 100644
--- a/kern/llsync.h
+++ b/kern/llsync.h
@@ -107,8 +107,9 @@ llsync_read_enter(void)
in_read_cs = thread_llsync_in_read_cs();
thread_llsync_read_inc();
- if (!in_read_cs)
+ if (!in_read_cs) {
thread_preempt_disable();
+ }
}
static inline void
@@ -116,8 +117,9 @@ llsync_read_exit(void)
{
thread_llsync_read_dec();
- if (!thread_llsync_in_read_cs())
+ if (!thread_llsync_in_read_cs()) {
thread_preempt_enable();
+ }
}
/*