rwlock: unbreak WITNESS builds after r326110
Reported by: Shawn Webb
This commit is contained in:
parent
41e06ccaac
commit
77a5a9349b
@ -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