Skip to content
Snippets Groups Projects
Commit dfbe5561 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: flush offloaded and delayed task_work on exit


io_uring offloads task_work for cancelation purposes when the task is
exiting. This is conceptually fine, but we should be nicer and actually
wait for that work to complete before returning.

Add an argument to io_fallback_tw() telling it to flush the deferred
work when it's all queued up, and have it flush a ctx behind whenever
the ctx changes.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 10e1c0d5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment