summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_clist.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-01-28 19:05:18 +0000
committerjhb <jhb@FreeBSD.org>2009-01-28 19:05:18 +0000
commit04d889be2081c3db3e5265e235a679f41fe3399d (patch)
treebe8ee5d9841a4d04dcb070462f1efa11689dcfb8 /sys/kern/subr_clist.c
parent5ac3853a0d987803465d9315d7927e48e0562c1c (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud