Skip to content

Commit 7b79db9

Browse files
committed
fix time comparision before irl_dispatch
Signed-off-by: YangKeao <[email protected]>
1 parent 176d45e commit 7b79db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/ioem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static struct request* ioem_dequeue(struct ioem_data *data)
350350
rq = list_first_entry(&data->list, struct request, queuelist);
351351
// if now is ealier than the `time_to_send`, there is no need to try to
352352
// dispatch
353-
if (now < ioem_priv(rq)->time_to_send) {
353+
if (now >= ioem_priv(rq)->time_to_send) {
354354
irl_ret = irl_dispatch(data, rq);
355355
if (irl_ret.dispatch > 0) {
356356
// not exceeded, return the request

0 commit comments

Comments
 (0)