From owner-cvs-src-old@FreeBSD.ORG Mon Dec 20 22:49:59 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92A1A1065670 for ; Mon, 20 Dec 2010 22:49:59 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7FB618FC14 for ; Mon, 20 Dec 2010 22:49:59 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oBKMnxYu074871 for ; Mon, 20 Dec 2010 22:49:59 GMT (envelope-from alc@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oBKMnx35074870 for cvs-src-old@freebsd.org; Mon, 20 Dec 2010 22:49:59 GMT (envelope-from alc@repoman.freebsd.org) Message-Id: <201012202249.oBKMnx35074870@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to alc@repoman.freebsd.org using -f From: Alan Cox Date: Mon, 20 Dec 2010 22:49:31 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/cxgb/ulp/tom cxgb_vm.c src/sys/kern sys_process.c src/sys/vm vm_extern.h vm_fault.c vm_map.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2010 22:49:59 -0000 alc 2010-12-20 22:49:31 UTC FreeBSD src repository Modified files: sys/dev/cxgb/ulp/tom cxgb_vm.c sys/kern sys_process.c sys/vm vm_extern.h vm_fault.c vm_map.h Log: SVN rev 216604 on 2010-12-20 22:49:31Z by alc Introduce vm_fault_hold() and use it to (1) eliminate a long-standing race condition in proc_rwmem() and to (2) simplify the implementation of the cxgb driver's vm_fault_hold_user_pages(). Specifically, in proc_rwmem() the requested read or write could fail because the targeted page could be reclaimed between the calls to vm_fault() and vm_page_hold(). In collaboration with: kib@ MFC after: 6 weeks Revision Changes Path 1.8 +4 -13 src/sys/dev/cxgb/ulp/tom/cxgb_vm.c 1.172 +17 -63 src/sys/kern/sys_process.c 1.96 +2 -0 src/sys/vm/vm_extern.h 1.284 +18 -5 src/sys/vm/vm_fault.c 1.140 +1 -0 src/sys/vm/vm_map.h