HomeFreeBSD

Fix the ARM64 build, include the necessary <sys/mutex.h> header.

Description

Fix the ARM64 build, include the necessary <sys/mutex.h> header.

While here, call device_delete_children() to detach and dealloc all the
existent children and handle the child's detach errors properly.

Reported by: jenkins, hselasky, ian
Sponsored by: Rubicon Communications, LLC (Netgate)

Details

Provenance
loosAuthored on
Parents
rS355460: libbe: fix build against sysutils/openzfs, part 1
Branches
Unknown
Tags
Unknown