io_uring: run timeouts from task_work
authorJens Axboe <axboe@kernel.dk>
Tue, 10 Aug 2021 21:11:51 +0000 (15:11 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Aug 2021 01:13:27 +0000 (19:13 -0600)
commit76801ae56018d4004b871a16dd5733f49594e1d1
tree3ff52b3d9e3566d0c38f255811fdad3defb5ba46
parent7015b25d7a87b207e766807aa1852875eb84ecd4
io_uring: run timeouts from task_work

This is in preparation to making the completion lock work outside of
hard/soft IRQ context.

Add a timeout_lock to handle the ordering of timeout completions or
cancelations with the timeouts actually triggering.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c