From 6c35fd6f0d100fe1e0b30e0a8457533b04ff5a46 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Mon, 4 Jun 2018 04:46:09 +0000 Subject: Add RW_DUPOK for suppressing witness checks for specific rw_enter() calls ok deraadt@ visa@ --- share/man/man9/rwlock.9 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'share/man/man9') diff --git a/share/man/man9/rwlock.9 b/share/man/man9/rwlock.9 index 8270a938c97..9b7276926e3 100644 --- a/share/man/man9/rwlock.9 +++ b/share/man/man9/rwlock.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rwlock.9,v 1.20 2017/10/30 13:33:36 visa Exp $ +.\" $OpenBSD: rwlock.9,v 1.21 2018/06/04 04:46:08 guenther Exp $ .\" .\" Copyright (c) 2006 Pedro Martelletto .\" All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: October 30 2017 $ +.Dd $Mdocdate: June 4 2018 $ .Dt RWLOCK 9 .Os .Sh NAME @@ -149,6 +149,12 @@ instead. Wait for busy locks, but do not obtain them, fail with .Dv EAGAIN instead. +.It Dv RW_DUPOK +Prevents +.Xr witness 4 , +for just this +.Fn rw_enter , +from logging when this thread already has more than one lock of this lock type. .El .Pp The -- cgit v1.2.3