io_uring: enable optimized link handling for IORING_OP_POLL_ADD
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2019 22:32:58 +0000 (15:32 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2019 22:32:58 +0000 (15:32 -0700)
commit89723d0bd6c77540c01ce7db2cd6f8c3be2fd958
treea9cb9003b316db7483cb9632bb8a5b9f473b2690
parent6f72653e76a511db47addad6ab690390233fc250
io_uring: enable optimized link handling for IORING_OP_POLL_ADD

As introduced by commit:

ba816ad61fdf ("io_uring: run dependent links inline if possible")

enable inline dependent link running for poll commands.
io_poll_complete_work() is the most important change, as it allows a
linked sequence of { POLL, READ } (for example) to proceed inline
instead of needing to get punted to another async context. The
submission side only potentially matters for sqthread, but may as well
include that bit.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c