diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2019-09-16 21:31:02 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2019-09-16 21:31:02 +0000 |
commit | a8c8e44bf09e7f0023e900a0e23c13930918dd14 (patch) | |
tree | 7539b6a9846e42ce0748a4b2b802d04cc936aa52 /sys/vm/uma.h | |
parent | 26a9d166802f74ab00472402b769f6d5079afe77 (diff) | |
download | src-a8c8e44bf09e7f0023e900a0e23c13930918dd14.tar.gz src-a8c8e44bf09e7f0023e900a0e23c13930918dd14.zip |
vfs: manage mnt_ref with atomics
New primitive is introduced to denote sections can operate locklessly
on aspects of struct mount, but which can also be disabled if necessary.
This provides an opportunity to start scaling common case modifications
while providing stable state of the struct when facing unmount, write
suspendion or other events.
mnt_ref is the first counter to start being managed in this manner with
the intent to make it per-cpu.
Reviewed by: kib, jeff
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21425
Notes
Notes:
svn path=/head/; revision=352424
Diffstat (limited to 'sys/vm/uma.h')
-rw-r--r-- | sys/vm/uma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h index e61d6b093de8..b74ec1200258 100644 --- a/sys/vm/uma.h +++ b/sys/vm/uma.h @@ -650,6 +650,7 @@ int uma_zone_exhausted_nolock(uma_zone_t zone); /* * Common UMA_ZONE_PCPU zones. */ +extern uma_zone_t pcpu_zone_int; extern uma_zone_t pcpu_zone_64; /* |