From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 23 15:10:07 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EAD416A422 for ; Thu, 23 Feb 2006 15:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D78F343D49 for ; Thu, 23 Feb 2006 15:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1NFA6ih017076 for ; Thu, 23 Feb 2006 15:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1NFA6iZ017075; Thu, 23 Feb 2006 15:10:06 GMT (envelope-from gnats) Resent-Date: Thu, 23 Feb 2006 15:10:06 GMT Resent-Message-Id: <200602231510.k1NFA6iZ017075@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Antoine Brodin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA4A516A420 for ; Thu, 23 Feb 2006 15:08:07 +0000 (GMT) (envelope-from antoine@peanut.dreadbsd.org) Received: from barton.dreadbsd.org (peanut.dreadbsd.org [82.67.196.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB12643D48 for ; Thu, 23 Feb 2006 15:08:06 +0000 (GMT) (envelope-from antoine@peanut.dreadbsd.org) Received: from barton.dreadbsd.org (localhost [127.0.0.1]) by barton.dreadbsd.org (8.13.4/8.13.4) with ESMTP id k1NF82Qu059229 for ; Thu, 23 Feb 2006 16:08:02 +0100 (CET) (envelope-from antoine@peanut.dreadbsd.org) Received: (from antoine@localhost) by barton.dreadbsd.org (8.13.4/8.13.1/Submit) id k1NF82l1059228; Thu, 23 Feb 2006 16:08:02 +0100 (CET) (envelope-from antoine) Message-Id: <200602231508.k1NF82l1059228@barton.dreadbsd.org> Date: Thu, 23 Feb 2006 16:08:02 +0100 (CET) From: Antoine Brodin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/93755: [patch] 2 copy'n'paste-os in sys/vm/phys_pager.c X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Antoine Brodin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 15:10:07 -0000 >Number: 93755 >Category: kern >Synopsis: [patch] 2 copy'n'paste-os in sys/vm/phys_pager.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 23 15:10:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Antoine Brodin >Release: FreeBSD 7.0-CURRENT i386 >Organization: none >Environment: System: FreeBSD barton.dreadbsd.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Feb 22 20:15:40 CET 2006 antoine@barton.dreadbsd.org:/usr/obj/usr/src/sys/BARTON i386 >Description: There are two copy'n'paste-os in sys/vm/phys_pager.c >How-To-Repeat: Read sys/vm/phys_pager.c >Fix: note: phyalc can be changed to ph[sy]al[cl] --- phys.diff begins here --- Index: phys_pager.c =================================================================== RCS file: /home/ncvs/src/sys/vm/phys_pager.c,v retrieving revision 1.23 diff -u -p -r1.23 phys_pager.c --- phys_pager.c 7 Jan 2005 02:29:26 -0000 1.23 +++ phys_pager.c 23 Feb 2006 14:36:52 -0000 @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD: src/sys/vm/phys_page /* prevent concurrant creation races */ static int phys_pager_alloc_lock; -/* list of device pager objects */ +/* list of phys pager objects */ static struct pagerlst phys_pager_object_list; /* protect access to phys_pager_object_list */ static struct mtx phys_pager_mtx; @@ -82,7 +82,7 @@ phys_pager_alloc(void *handle, vm_ooffse */ while (phys_pager_alloc_lock) { phys_pager_alloc_lock = -1; - tsleep(&phys_pager_alloc_lock, PVM, "swpalc", 0); + tsleep(&phys_pager_alloc_lock, PVM, "phyalc", 0); } phys_pager_alloc_lock = 1; --- phys.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: