Re: [PATCH bpf-next 2/4] bpf: add bpf_thread_wq kthread-backed workqueue with cgroup placement
From: Tejun Heo
Date: Thu Aug 13 2026 - 13:14:28 EST
Hello, Hui.
On Fri, Aug 07, 2026 at 03:01:50PM +0800, Hui Zhu wrote:
> Introduce bpf_thread_wq, a new BPF embedded map field similar to
> bpf_wq but backed by a dedicated kthread_worker instead of a system
> workqueue. The worker kthread can be attached to a specific cgroup at
> init time so BPF-deferred callbacks run under the resource limits of
> the target cgroup.
I find the name bpf_thread_wq unnecessarily confusing. The kernel
counterpart is kthread_worker, not workqueue. Maybe name it
bpf_kthread_worker?
Thanks.
--
tejun