Date: Wed, 28 Jan 2009 19:05:18 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern vfs_cache.c Message-ID: <200901281905.n0SJ5OKe093327@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-01-28 19:05:18 UTC FreeBSD src repository Modified files: sys/kern vfs_cache.c Log: SVN rev 187839 on 2009-01-28 19:05:18Z by jhb Convert the global mutex protecting the directory lookup name cache from a mutex to a reader/writer lock. Lookup operations first grab a read lock and perform the lookup. If the operation results in a need to modify the cache, then it tries to do an upgrade. If that fails, it drops the read lock, obtains a write lock, and redoes the lookup. Revision Changes Path 1.135 +81 -46 src/sys/kern/vfs_cache.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901281905.n0SJ5OKe093327>