ata/nvme: Add comment

Steal the comment from daonninvalidate about the call to disk_gone().

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-24 15:11:52 -06:00
parent 347a8e93fe
commit 48ae3f4f64
2 changed files with 8 additions and 0 deletions

View file

@ -1246,6 +1246,10 @@ adaoninvalidate(struct cam_periph *periph)
*/
cam_iosched_flush(softc->cam_iosched, NULL, ENXIO);
/*
* Tell GEOM that we've gone away, we'll get a callback when it is
* done cleaning up its resources.
*/
disk_gone(softc->disk);
}

View file

@ -608,6 +608,10 @@ ndaoninvalidate(struct cam_periph *periph)
*/
cam_iosched_flush(softc->cam_iosched, NULL, ENXIO);
/*
* Tell GEOM that we've gone away, we'll get a callback when it is
* done cleaning up its resources.
*/
disk_gone(softc->disk);
}