Re: [PATCH 1/2] io_uring/waitid: honor task_work cancellation
From: Jens Axboe
Date: Tue Aug 25 2026 - 14:11:53 EST
On Tue, 18 Aug 2026 18:33:36 +0800, Hui Su wrote:
> io_waitid_cb() may run through the fallback task_work path when
> task_work_add() can no longer queue work to the originating task. The
> fallback runs from a kworker and io_uring marks such task work as
> canceled through tw.cancel.
>
> io_waitid_cb() currently ignores tw.cancel and calls __do_wait().
> waitid is task-context dependent: __do_wait() performs child lookup
> relative to current, and the retry path also uses
> current->signal->wait_chldexit. If the callback runs from the fallback
> kworker, current is therefore not the task that submitted the request.
>
> [...]
Applied, thanks!
[1/2] io_uring/waitid: honor task_work cancellation
commit: 14572de82e5022899e5856008bc9cac97004a88c
[2/2] io_uring/waitid: avoid siginfo copy during ring teardown
commit: 2cf20c4e0f72d523b8673053e7120d092ff1f074
Best regards,
--
Jens Axboe