HomeFreeBSD

Move NVME controller shutdown from being called as part of module unloading

Description

Move NVME controller shutdown from being called as part of module unloading
to being called through the newbus DEVICE_SHUTDOWN() path. This ensures that
the NVME controller gets shut down before the device and bus disappear
and prevents data corruption on shutdown on at least Samsung EVO 960 SSDs.

PR: kern/211852
Reviewed by: imp
MFC after: 2 weeks

Details

Provenance
nwhitehornAuthored on
Reviewer
imp
Parents
rS322442: MFC: r322380 Update subversion 1.9.5 -> 1.9.7
Branches
Unknown
Tags
Unknown