nvme: Add comment about where tr->deadline is set

It's easy to overlook the chain of events that lead to tr->deadline
being updated. Add a comment here to explain what otherwise looks like
an oversight w/o careful study.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-05-13 15:58:59 -06:00
parent c931cf6af0
commit 0dd84c3b11

View file

@ -1315,6 +1315,11 @@ _nvme_qpair_submit_request(struct nvme_qpair *qpair, struct nvme_request *req)
return;
}
/*
* tr->deadline updating when nvme_payload_map calls
* nvme_qpair_submit_tracker (we call it above directly
* when there's no map to load).
*/
err = bus_dmamap_load_mem(tr->qpair->dma_tag_payload,
tr->payload_dma_map, &req->payload, nvme_payload_map, tr, 0);
if (err != 0) {