Skip to content

Commit

Permalink
io_uring: run dependent links inline if possible
Browse files Browse the repository at this point in the history
Currently any dependent link is executed from a new workqueue context,
which means that we'll be doing a context switch per link in the chain.
If we are running the completion of the current request from our async
workqueue and find that the next request is a link, then run it directly
from the workqueue context instead of forcing another switch.

This improves the performance of linked SQEs, and reduces the CPU
overhead.

Reviewed-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Oct 29, 2019
1 parent d848074 commit ba816ad
Showing 1 changed file with 113 additions and 47 deletions.
Loading

0 comments on commit ba816ad

Please sign in to comment.