mpi3mr: Block devices persist despite being offlined during reset

The driver removes the drive from the OS if firmware sends 'device added'
event with hidden bit or inaccessible status.

Reviewed by:            imp
Approved by:            imp
Differential revision:  https://reviews.freebsd.org/D44421
This commit is contained in:
Chandrakanth patil
2024-03-13 23:33:19 +05:30
committed by Sumit Saxena
parent 17e85f5990
commit 0d7056458d
+2
View File
@@ -5668,6 +5668,8 @@ static void mpi3mr_rfresh_tgtdevs(struct mpi3mr_softc *sc)
if (target->exposed_to_os)
mpi3mr_remove_device_from_os(sc, target->dev_handle);
mpi3mr_remove_device_from_list(sc, target, true);
} else if (target->is_hidden && target->exposed_to_os) {
mpi3mr_remove_device_from_os(sc, target->dev_handle);
}
}