diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-05-09 22:53:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-05-09 22:53:34 +0000 |
commit | e8ccc2cbbd90ba6227c06d9768d5bcbcbf96c06e (patch) | |
tree | 2ca614798172e7eb143223ff4f9620b27fc60883 /sys/vm | |
parent | bb45a1006dff66dd358f39ac81b57f3f1ca691c2 (diff) | |
download | FreeBSD-src-e8ccc2cbbd90ba6227c06d9768d5bcbcbf96c06e.zip FreeBSD-src-e8ccc2cbbd90ba6227c06d9768d5bcbcbf96c06e.tar.gz |
Update stale comment on protecting UMA per-CPU caches: we now use
critical sections rather than mutexes.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/uma_int.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h index 6e86206..c4ea69c 100644 --- a/sys/vm/uma_int.h +++ b/sys/vm/uma_int.h @@ -75,13 +75,13 @@ * pair, as well as with its own set of small per-CPU caches, layered above * the Zone's general Bucket cache. * - * The PCPU caches are protected by their own locks, while the Zones backed - * by the same Keg all share a common Keg lock (to coalesce contention on - * the backing slabs). The backing Keg typically only serves one Zone but - * in the case of multiple Zones, one of the Zones is considered the - * Master Zone and all Zone-related stats from the Keg are done in the - * Master Zone. For an example of a Multi-Zone setup, refer to the - * Mbuf allocation code. + * The PCPU caches are protected by critical sections, and may be accessed + * safely only from their associated CPU, while the Zones backed by the same + * Keg all share a common Keg lock (to coalesce contention on the backing + * slabs). The backing Keg typically only serves one Zone but in the case of + * multiple Zones, one of the Zones is considered the Master Zone and all + * Zone-related stats from the Keg are done in the Master Zone. For an + * example of a Multi-Zone setup, refer to the Mbuf allocation code. */ /* |