Skip to content
Commit 610d307f authored by Tom Burdick's avatar Tom Burdick Committed by Maureen Helm
Browse files

rtio: Properly track last sqe in the queue



The pending_sqe logic to track where in the ring queue the concurrent
executor had left off was slightly flawed. It didn't account for starting
all sqes in the queue and ending back up at the beginning.

Instead track the last SQE in the queue, from which the next one in the
queue will the one to start next.

If we happen to sweep the last known SQE in the queue, reset it to NULL
so the next time prepare is called we start at the beginning of the queue
again.

Signed-off-by: default avatarTom Burdick <thomas.burdick@intel.com>
parent 3353342e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment