• Jens Axboe's avatar
    io_uring: add io_file_can_poll() helper · 95041b93
    Jens Axboe authored
    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>
    95041b93
poll.c 28.5 KB