• Jens Axboe's avatar
    io_uring: refill request cache in memory order · 05eb5fe2
    Jens Axboe authored
    The allocator will generally return memory in order, but
    __io_alloc_req_refill() then adds them to a stack and we'll extract them
    in the opposite order. This obviously isn't a huge deal, but:
    
    1) it makes debugging easier when they are in order
    2) keeping them in-order is the right thing to do
    3) reduces the code for adding them to the stack
    
    Just add them in reverse to the stack.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    05eb5fe2
io_uring.c 108 KB