io_uring: handle traditional task_work in FIFO order
authorJens Axboe <axboe@kernel.dk>
Tue, 30 Jan 2024 14:04:52 +0000 (07:04 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 20:27:06 +0000 (13:27 -0700)
commit170539bdf1094e6e43e9aa86bf2dcaff0857df41
tree8d700ed231a911786b52fa8baed69a2fcb1ea643
parent4c98b89175a229a1eb9e6db67b4b7c0d712c86a7
io_uring: handle traditional task_work in FIFO order

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: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c