在 2021/8/24 上午2:36, Hao Xu 写道:
Now we have a lot of task_work users, some are just to complete a req and generate a cqe. Let's put the work at the head position of the task_list, so that it can be handled quickly and thus to reduce avg req latency. an explanatory case: origin timeline: submit_sqe-->irq-->add completion task_work -->run heavy work0~n-->run completion task_work now timeline: submit_sqe-->irq-->add completion task_work -->run completion task_work-->run heavy work0~n Signed-off-by: Hao Xu <haoxu@xxxxxxxxxxxxxxxxx>
sorry, sent this old version by mistake, will send latest version later. the latest one is to add high priority task_work to the front of task_list in the time order, not the reverse order.