From owner-freebsd-doc@FreeBSD.ORG Wed Mar 11 15:10:03 2009 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C5B6106567B for ; Wed, 11 Mar 2009 15:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 484898FC0A for ; Wed, 11 Mar 2009 15:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2BFA14x079097 for ; Wed, 11 Mar 2009 15:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2BFA1Sq079096; Wed, 11 Mar 2009 15:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 11 Mar 2009 15:10:01 GMT Resent-Message-Id: <200903111510.n2BFA1Sq079096@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, pluknet Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F05F91065672 for ; Wed, 11 Mar 2009 15:04:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id DEABE8FC22 for ; Wed, 11 Mar 2009 15:04:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2BF4E56026796 for ; Wed, 11 Mar 2009 15:04:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2BF4ErH026795; Wed, 11 Mar 2009 15:04:14 GMT (envelope-from nobody) Message-Id: <200903111504.n2BF4ErH026795@www.freebsd.org> Date: Wed, 11 Mar 2009 15:04:14 GMT From: pluknet To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/132546: [patch] sync vm_map_lock(9) with recent locking changes X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 15:10:05 -0000 >Number: 132546 >Category: docs >Synopsis: [patch] sync vm_map_lock(9) with recent locking changes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Mar 11 15:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: pluknet >Release: FreeBSD 8.0-CURRENT >Organization: RIPN >Environment: FreeBSD 8.0-CURRENT >Description: Quoting commit log to vm_map.c, v1.402: "Resurrect shared map locks allowing greater concurrency during some map operations, such as page faults. [..] MFC after: 6 weeks" vm_map_lock(9) was not updated to reflect the reality. >How-To-Repeat: >Fix: Apply the patch. Patch attached with submission follows: --- share/man/man9/vm_map_lock.9.orig Wed Mar 11 17:57:55 2009 +++ share/man/man9/vm_map_lock.9 Wed Mar 11 17:59:54 2009 @@ -73,7 +73,6 @@ .Fn vm_map_lock_read macro obtains a read-lock on .Fa map . -Currently this is implemented as an exclusive lock. .Pp The .Fn vm_map_unlock_read @@ -93,23 +92,18 @@ .Fa map . It returns FALSE if the lock cannot be immediately acquired; otherwise return TRUE with the lock acquired. -Currently this is implemented as an exclusive lock. .Pp The .Fn vm_map_lock_upgrade macro attempts to atomically upgrade a read-lock on .Fa map to an exclusive lock. -As read-locks are currently implemented as exclusive locks, -this macro is a no-op. .Pp The .Fn vm_map_lock_downgrade macro attempts to downgrade an exclusive lock on .Fa map to a read-lock. -As read-locks are currently implemented as exclusive locks, -this macro is a no-op. .Sh IMPLEMENTATION NOTES Currently, all of the locking macros implement their locks as sleep locks. .Sh SEE ALSO >Release-Note: >Audit-Trail: >Unformatted: