svn commit: r326111 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Thu Nov 23 03:20:14 UTC 2017
Author: mjg
Date: Thu Nov 23 03:20:12 2017
New Revision: 326111
URL: https://svnweb.freebsd.org/changeset/base/326111
Log:
rwlock: unbreak WITNESS builds after r326110
Reported by: Shawn Webb
Modified:
head/sys/kern/kern_rwlock.c
Modified: head/sys/kern/kern_rwlock.c
==============================================================================
--- head/sys/kern/kern_rwlock.c Wed Nov 22 23:52:05 2017 (r326110)
+++ head/sys/kern/kern_rwlock.c Thu Nov 23 03:20:12 2017 (r326111)
@@ -551,7 +551,7 @@ __rw_rlock_hard(struct rwlock *rw, struct thread *td,
/*
* 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
More information about the svn-src-head
mailing list