ada/da: Borrow comment from nda about cleanup

Remove a XXX comment and replace it with a more accurate comment about
what happens to I/O queued to the hardware.

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

View file

@ -1240,9 +1240,10 @@ adaoninvalidate(struct cam_periph *periph)
#endif
/*
* Return all queued I/O with ENXIO.
* XXX Handle any transactions queued to the card
* with XPT_ABORT_CCB.
* Return all queued I/O with ENXIO. Transactions may be queued up here
* for retry (since we are called while there's other transactions
* pending). Any requests in the hardware will drain before ndacleanup
* is called.
*/
cam_iosched_flush(softc->cam_iosched, NULL, ENXIO);

View file

@ -2055,9 +2055,10 @@ daoninvalidate(struct cam_periph *periph)
#endif
/*
* Return all queued I/O with ENXIO.
* XXX Handle any transactions queued to the card
* with XPT_ABORT_CCB.
* Return all queued I/O with ENXIO. Transactions may be queued up here
* for retry (since we are called while there's other transactions
* pending). Any requests in the hardware will drain before dacleanup
* is called.
*/
cam_iosched_flush(softc->cam_iosched, NULL, ENXIO);