Commit d3d7298
io_uring: optimise out unlikely link queue
__io_queue_sqe() tries to issue as much requests of a link as it can,
and uses io_put_req_find_next() to extract a next one, targeting inline
completed requests. As now __io_queue_sqe() is always used together with
struct io_comp_state, it leaves next propagation only a small window and
only for async reqs, that doesn't justify its existence.
Remove it, make __io_queue_sqe() to issue only a head request. It
simplifies the code and will allow other optimisations.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent bd75904 commit d3d7298
1 file changed
+10
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6563 | 6563 | | |
6564 | 6564 | | |
6565 | 6565 | | |
6566 | | - | |
| 6566 | + | |
6567 | 6567 | | |
6568 | 6568 | | |
6569 | 6569 | | |
6570 | | - | |
6571 | | - | |
6572 | | - | |
6573 | 6570 | | |
6574 | 6571 | | |
6575 | | - | |
6576 | | - | |
6577 | | - | |
6578 | | - | |
6579 | | - | |
6580 | | - | |
6581 | | - | |
6582 | | - | |
| 6572 | + | |
| 6573 | + | |
6583 | 6574 | | |
6584 | 6575 | | |
6585 | 6576 | | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
6586 | 6580 | | |
6587 | 6581 | | |
6588 | 6582 | | |
| |||
6595 | 6589 | | |
6596 | 6590 | | |
6597 | 6591 | | |
6598 | | - | |
6599 | | - | |
6600 | | - | |
6601 | 6592 | | |
6602 | 6593 | | |
6603 | 6594 | | |
6604 | 6595 | | |
6605 | 6596 | | |
6606 | 6597 | | |
6607 | 6598 | | |
6608 | | - | |
| 6599 | + | |
6609 | 6600 | | |
6610 | | - | |
6611 | 6601 | | |
6612 | | - | |
6613 | | - | |
6614 | | - | |
6615 | | - | |
6616 | | - | |
6617 | | - | |
6618 | | - | |
6619 | | - | |
6620 | | - | |
6621 | | - | |
| 6602 | + | |
6622 | 6603 | | |
6623 | 6604 | | |
6624 | | - | |
6625 | | - | |
6626 | 6605 | | |
6627 | 6606 | | |
6628 | 6607 | | |
6629 | 6608 | | |
6630 | | - | |
6631 | | - | |
6632 | | - | |
| 6609 | + | |
| 6610 | + | |
6633 | 6611 | | |
6634 | 6612 | | |
6635 | 6613 | | |
| |||
0 commit comments