HomeFreeBSD

Fix GEOM_GATE orphanization.

Description

Fix GEOM_GATE orphanization.

Previous code closed and destroyed direct read 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
rS356150: vm_object_shadow(): fix object reference leak.
Branches
Unknown
Tags
Unknown