summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-01-06 07:05:13 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-01-06 07:05:13 +0000
commit595f8eb9eeefaaa6c840e93b24276a82310b82bc (patch)
treef1a3b34f3b10487ee9f3d2edc54ae1c5c8a63668 /sys
parentbe4d02a201ff5764146f67df416fbdea74eaa6d8 (diff)
oring in PCATCH doesn't help if we don't pass the right prio to tsleep
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_rwlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c
index 6543ed94b66..b5845e618ce 100644
--- a/sys/kern/kern_rwlock.c
+++ b/sys/kern/kern_rwlock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_rwlock.c,v 1.4 2006/01/06 06:50:31 tedu Exp $ */
+/* $OpenBSD: kern_rwlock.c,v 1.5 2006/01/06 07:05:12 tedu Exp $ */
/*
* Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -229,7 +229,7 @@ retry:
rw_enter_diag(rwl, flags);
- if ((error = tsleep(rwl, op->wait_prio, "rwlock", 0)) != 0)
+ if ((error = tsleep(rwl, prio, "rwlock", 0)) != 0)
return (error);
if (flags & RW_SLEEPFAIL)
return (EAGAIN);