From owner-cvs-all@FreeBSD.ORG Fri Sep 12 09:53:41 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6778106566B; Fri, 12 Sep 2008 09:53:41 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B083E8FC19; Fri, 12 Sep 2008 09:53:41 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8C9rf6I037527; Fri, 12 Sep 2008 09:53:41 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8C9rf1h037526; Fri, 12 Sep 2008 09:53:41 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200809120953.m8C9rf1h037526@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Fri, 12 Sep 2008 09:53:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/i386/i386 sys_machdep.c vm_machdep.c src/sys/i386/include proc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 09:53:41 -0000 kib 2008-09-12 09:53:29 UTC FreeBSD src repository Modified files: sys/i386/i386 sys_machdep.c vm_machdep.c sys/i386/include proc.h Log: SVN rev 182961 on 2008-09-12 09:53:29Z by kib When doing rfork(0), i.e. separating curproc VM from any other user of the same vmspace, decrement the reference count of the shared LDT instead of a newly-made copy. Code factually removed LDT from the process that did rfork(0). Introduce user_ldt_deref() function that does decrement of refcount for the struct proc_ldt, and call it in the rfork(0) case on the shared LDT. Reviewed by: jhb MFC after: 1 week Revision Changes Path 1.117 +8 -0 src/sys/i386/i386/sys_machdep.c 1.291 +5 -5 src/sys/i386/i386/vm_machdep.c 1.28 +1 -0 src/sys/i386/include/proc.h