Date: Thu, 23 Nov 2017 03:20:12 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326111 - head/sys/kern Message-ID: <201711230320.vAN3KCfA056885@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711230320.vAN3KCfA056885>