Skip to content
Commit 95041b93 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: add io_file_can_poll() helper



This adds a flag to avoid dipping dereferencing file and then f_op to
figure out if the file has a poll handler defined or not. We generally
call this at least twice for networked workloads, and if using ring
provided buffers, we do it on every buffer selection. Particularly the
latter is troublesome, as it's otherwise a very fast operation.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 521223d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment