nda: Fix comment

Fix a comment that was left over from the orignial
implementation. Explain how pending transactions in hardware are
completed/aborted in the SIM prior to ndacleanup being called.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-23 17:08:39 -06:00
parent 38f8addaab
commit c08ceddbf7

View File

@ -601,9 +601,10 @@ ndaoninvalidate(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);