• Jens Axboe's avatar
    io_uring: handle traditional task_work in FIFO order · 170539bd
    Jens Axboe authored
    For local task_work, which is used if IORING_SETUP_DEFER_TASKRUN is set,
    we reverse the order of the lockless list before processing the work.
    This is done to process items in the order in which they were queued, as
    the llist always adds to the head.
    
    Do the same for traditional task_work, so we have the same behavior for
    both types.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    170539bd
io_uring.c 110 KB