HomeFreeBSD

fd: Move from using device_busy to a refcount

Description

fd: Move from using device_busy to a refcount

Use refcounting to delay the detach rather than device_busy and/or
device_unbusy. fd/fdc is one of the few consumers of device_busy in the
tree for that, and it's not a good fit. Also, nothing is waking 'fd' and
other drivers don't loop like this. Return EBUSY if we still have active
users.

Sponsored by: Netflix
Reviewed by: mav
Differential Revision: https://reviews.freebsd.org/D31830

Details

Provenance
impAuthored on Sep 30 2021, 2:18 AM
Reviewer
mav
Differential Revision
D31830: fd: Move from using device_busy to a refcount
Parents
rG8ea95b2fbab8: loader.efi: remove extra extern ST
Branches
Unknown
Tags
Unknown