HomeFreeBSD

Fix GEOM_MOUNTVER orphanization.

Description

Fix GEOM_MOUNTVER orphanization.

Previous code closed and detached consumer even with I/O still in progress.
This patch adds locking and request counting to postpone the close till
the last of running requests completes.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on
Parents
rS356177: Implement Linux syslog(2) syscall; just enough to make Linux dmesg(8)
Branches
Unknown
Tags
Unknown