summaryrefslogtreecommitdiff
path: root/sys/kern/kern_rwlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_rwlock.c')
-rw-r--r--sys/kern/kern_rwlock.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c
index 3641403f369..0a2bca5a861 100644
--- a/sys/kern/kern_rwlock.c
+++ b/sys/kern/kern_rwlock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_rwlock.c,v 1.11 2007/05/04 12:56:15 art Exp $ */
+/* $OpenBSD: kern_rwlock.c,v 1.12 2007/05/04 13:21:03 art Exp $ */
/*
* Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org>
@@ -190,11 +190,7 @@ rw_enter(struct rwlock *rwl, int flags)
retry:
while (__predict_false(((o = rwl->rwl_owner) & op->check) != 0)) {
unsigned long set = o | op->wait_set;
- int do_sleep, prio;
-
- prio = op->wait_prio;
- if (flags & RW_INTR)
- prio |= PCATCH;
+ int do_sleep;
rw_enter_diag(rwl, flags);