diff options
author | jhb <jhb@FreeBSD.org> | 2009-01-28 19:05:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-01-28 19:05:18 +0000 |
commit | 04d889be2081c3db3e5265e235a679f41fe3399d (patch) | |
tree | be8ee5d9841a4d04dcb070462f1efa11689dcfb8 /sys/kern/subr_clist.c | |
parent | 5ac3853a0d987803465d9315d7927e48e0562c1c (diff) | |
download | FreeBSD-src-04d889be2081c3db3e5265e235a679f41fe3399d.zip FreeBSD-src-04d889be2081c3db3e5265e235a679f41fe3399d.tar.gz |
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.
Diffstat (limited to 'sys/kern/subr_clist.c')
0 files changed, 0 insertions, 0 deletions