diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2006-01-06 07:05:13 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2006-01-06 07:05:13 +0000 |
commit | 595f8eb9eeefaaa6c840e93b24276a82310b82bc (patch) | |
tree | f1a3b34f3b10487ee9f3d2edc54ae1c5c8a63668 /sys | |
parent | be4d02a201ff5764146f67df416fbdea74eaa6d8 (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.c | 4 |
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); |