Skip to content
Commit 1251d202 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/sqpoll: early exit thread if task_context wasn't allocated



Ideally we'd want to simply kill the task rather than wake it, but for
now let's just add a startup check that causes the thread to exit.
This can only happen if io_uring_alloc_task_context() fails, which
generally requires fault injection.

Reported-by: default avatarUbisectech Sirius <bugreport@ubisectech.com>
Fixes: af5d68f8 ("io_uring/sqpoll: manage task_work privately")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e21e1c45
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment