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

io_uring: always wait for sqd exited when stopping SQPOLL thread



We have a tiny race where io_put_sq_data() calls io_sq_thead_stop()
and finds the thread gone, but the thread has indeed not fully
exited or called complete() yet. Close it up by always having
io_sq_thread_stop() wait on completion of the exit event.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 5199328a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment