mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
c931cf6af0
commit
0dd84c3b11
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue