On 11/27/21 15:24, Hao Xu wrote:
In previous patches, we have already gathered some tw with io_req_task_complete() as callback in prior_task_list, let's complete them in batch while we cannot grab uring lock. In this way, we batch the req_complete_post path. Signed-off-by: Hao Xu <haoxu@xxxxxxxxxxxxxxxxx> --- v6->v7 - use function pointer to reduce the if check everytime running a task work in handle_prior_tw_list()
Ifs are not a big problem, but retpolines may screw performance, let's stay with v6. -- Pavel Begunkov