HomeFreeBSD

vfs: manage mnt_ref with atomics

Description

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

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D21425: vfs: manage mnt_ref with atomics
Parents
rS352423: Add myself (dmgk) to calendar.freebsd
Branches
Unknown
Tags
Unknown