Skip to content

Commit

Permalink
fix time comparision before irl_dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: YangKeao <[email protected]>
YangKeao committed Dec 21, 2021
1 parent 176d45e commit 7b79db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/ioem.c
Original file line number Diff line number Diff line change
@@ -350,7 +350,7 @@ static struct request* ioem_dequeue(struct ioem_data *data)
rq = list_first_entry(&data->list, struct request, queuelist);
// if now is ealier than the `time_to_send`, there is no need to try to
// dispatch
if (now < ioem_priv(rq)->time_to_send) {
if (now >= ioem_priv(rq)->time_to_send) {
irl_ret = irl_dispatch(data, rq);
if (irl_ret.dispatch > 0) {
// not exceeded, return the request

0 comments on commit 7b79db9

Please sign in to comment.