HomeFreeBSD

ggate: Avoid dropping the GEOM topology lock in dumpconf

Description

ggate: Avoid dropping the GEOM topology lock in dumpconf

In general it's not safe to drop the topology lock in these routines, as
GEOM assumes that the mesh will be consistent during traversal.
However, there's no reason we can't hold the topology lock across calls
to g_gate_release(). (Note that g_gate_hold() can be called with the
topology lock held.)

PR: 238814
MFC after: 2 weeks

Details

Provenance
markjAuthored on Oct 4 2024, 2:53 PM
Parents
rGd9fe71828797: makefs: Remove the warning printed when makefs -t zfs is used
Branches
Unknown
Tags
Unknown