Re: [PATCH] io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit
From: Jens Axboe
Date: Tue Nov 03 2026 - 10:21:50 EST
On Mon, 02 Nov 2026 16:05:42 +0800, Shuai Liu wrote:
> io_sq_thread_stop() carries a WARN_ON_ONCE() asserting that
> IO_SQ_THREAD_SHOULD_STOP isn't set yet, i.e. that stopping the SQPOLL
> thread is never attempted twice. Since commit 22d9db9fd64a
> ("io_uring/sqpoll: don't attach to a thread that is canceling"), the
> SQPOLL thread itself sets that bit on its way out, so that
> io_sq_offload_create() won't attach a new ring to a thread that is
> canceling.
>
> [...]
Applied, thanks!
[1/1] io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit
commit: fca3ff9e2eee7d285585daf51942e0b5e2be354a
Best regards,
--
Jens Axboe