• Jens Axboe's avatar
    io_uring: expand main struct io_kiocb flags to 64-bits · 4bcb982c
    Jens Axboe authored
    We're out of space here, and none of the flags are easily reclaimable.
    Bump it to 64-bits and re-arrange the struct a bit to avoid gaps.
    
    Add a specific bitwise type for the request flags, io_request_flags_t.
    This will help catch violations of casting this value to a smaller type
    on 32-bit archs, like unsigned int.
    
    This creates a hole in the io_kiocb, so move nr_tw up and rsrc_node down
    to retain needing only cacheline 0 and 1 for non-polled opcodes.
    
    No functional changes intended in this patch.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    4bcb982c
io_uring.h 17 KB