HomeFreeBSD

Move releasing of resources to later

Description

Move releasing of resources to later

Turn off bus master after we detach the device (to match the prior
order). Release MSI after we're done detaching and have turned off
all the interrupts. Otherwise this may cause problems as other threads
race nvme_detach. This more closely matches the old order.

Reviewed by: mav@

Details

Provenance
impAuthored on
Parents
rS351402: Merge libc++ trunk r366426, resolve conflicts, and add FREEBSD-Xlist.
Branches
Unknown
Tags
Unknown