rwlock: unbreak WITNESS builds after r326110
Reported by: Shawn Webb
This commit is contained in:
parent
70502e39d3
commit
62b0676cde
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326111
@ -551,7 +551,7 @@ __rw_rlock_hard(struct rwlock *rw, struct thread *td, uintptr_t v
|
||||
/*
|
||||
* The lock is held in write mode or it already has waiters.
|
||||
*/
|
||||
MPASS(!RW_CAN_READ(td, v));
|
||||
MPASS(!__rw_can_read(td, v, false));
|
||||
|
||||
/*
|
||||
* If the RW_LOCK_READ_WAITERS flag is already set, then
|
||||
|
Loading…
Reference in New Issue
Block a user