summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorLi Chen <me@linux.beauty>2026-02-02 22:37:53 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-16 10:19:40 +0100
commitf02693a40e40702cb6201145379e21634dfbe20d (patch)
tree5e696d4449bfbd460cac58cdba81b195f52d49c1 /include/net/aligned_data.h
parent41cec610f690603820c80c4871dbb55bec77b9a2 (diff)
io_uring/io-wq: add exit-on-idle state
commit 38aa434ab9335ce2d178b7538cdf01d60b2014c3 upstream. io-wq uses an idle timeout to shrink the pool, but keeps the last worker around indefinitely to avoid churn. For tasks that used io_uring for file I/O and then stop using io_uring, this can leave an iou-wrk-* thread behind even after all io_uring instances are gone. This is unnecessary overhead and also gets in the way of process checkpoint/restore. Add an exit-on-idle state that makes all io-wq workers exit as soon as they become idle, and provide io_wq_set_exit_on_idle() to toggle it. Signed-off-by: Li Chen <me@linux.beauty> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions