From owner-cvs-src-old@FreeBSD.ORG Sun Jan 25 16:59:37 2009 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 9A5D21065784 for ; Sun, 25 Jan 2009 16:59:37 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 85B998FC13 for ; Sun, 25 Jan 2009 16:59:37 +0000 (UTC) (envelope-from ed@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 n0PGxbf4048087 for ; Sun, 25 Jan 2009 16:59:37 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0PGxbYj048086 for cvs-src-old@freebsd.org; Sun, 25 Jan 2009 16:59:37 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200901251659.n0PGxbYj048086@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Sun, 25 Jan 2009 16:59:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/kern uipc_domain.c 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: Sun, 25 Jan 2009 16:59:38 -0000 ed 2009-01-25 16:59:29 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern uipc_domain.c Log: SVN rev 187690 on 2009-01-25 16:59:29Z by ed MFC r186747 to releng/7: Remove Giant locking from domains list. During boot, the domain list is locked with Giant. It is not possible to register any protocols after the system has booted, so the lock is only used to protect insertion of entries. There is already a mutex in uipc_domain.c called dom_mtx. Use this mutex to lock the list, instead of using Giant. It won't matter anything with respect to performance, but we'll never get rid of Giant if we don't remove from places where we don't need it. Approved by: rwatson MFC after: 3 weeks Revision Changes Path 1.51.2.3 +9 -9 src/sys/kern/uipc_domain.c