From owner-cvs-src@FreeBSD.ORG Thu Sep 23 07:17:42 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D73716A4CF; Thu, 23 Sep 2004 07:17:42 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3543B43D3F; Thu, 23 Sep 2004 07:17:42 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8N7HgRc013057; Thu, 23 Sep 2004 07:17:42 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8N7HgrR013056; Thu, 23 Sep 2004 07:17:42 GMT (envelope-from phk) Message-Id: <200409230717.i8N7HgrR013056@repoman.freebsd.org> From: Poul-Henning Kamp Date: Thu, 23 Sep 2004 07:17:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/specfs spec_vnops.c src/sys/kern kern_conf.c vfs_bio.c vfs_subr.c src/sys/sys conf.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 07:17:42 -0000 phk 2004-09-23 07:17:42 UTC FreeBSD src repository Modified files: sys/fs/specfs spec_vnops.c sys/kern kern_conf.c vfs_bio.c vfs_subr.c sys/sys conf.h Log: Do not refcount the cdevsw, but rather maintain a cdev->si_threadcount of the number of threads which are inside whatever is behind the cdevsw for this particular cdev. Make the device mutex visible through dev_lock() and dev_unlock(). We may want finer granularity later. Replace spechash_mtx use with dev_lock()/dev_unlock(). Revision Changes Path 1.229 +42 -18 src/sys/fs/specfs/spec_vnops.c 1.158 +17 -36 src/sys/kern/kern_conf.c 1.449 +11 -5 src/sys/kern/vfs_bio.c 1.526 +17 -24 src/sys/kern/vfs_subr.c 1.195 +3 -3 src/sys/sys/conf.h