When the queue inflight_dma_nodes is full and more than maxInflightNodes new DMA nodes are executed, the new requests will wait indefinitely since the condition inflight_dma_nodes.size() < maxInflightNodes will never evaluate to true.
This commit changes the logic so that new nodes are only queued when inflight_dma_nodes has space.
When the queue
inflight_dma_nodes
is full and more thanmaxInflightNodes
new DMA nodes are executed, the new requests will wait indefinitely since the conditioninflight_dma_nodes.size() < maxInflightNodes
will never evaluate to true.This commit changes the logic so that new nodes are only queued when
inflight_dma_nodes
has space.