Date: Thu, 23 Sep 2004 07:17:42 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200409230717.i8N7HgrR013056@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409230717.i8N7HgrR013056>