Re: [PATCH v3 2/2] selftests/sched_ext: Test that ops.dequeue() can iterate the consumed DSQ

From: Tejun Heo

Date: Wed Sep 16 2026 - 17:05:31 EST


Hello, Qiurong.

On Wed, Sep 16, 2026 at 03:07:53PM +0800, Qiurong Fang wrote:
> + * ops.dequeue() of this scheduler iterates the user DSQ tasks are
> + * consumed from with bpf_iter_scx_dsq, which takes the DSQ lock.

"the user DSQ it consumes tasks from" reads easier.

> + SCX_FAIL_IF(pthread_create(&tid, NULL, run_workload, skel),
> + "Failed to create workload thread");
> + pthread_join(tid, NULL);

The thread doesn't add anything. Poll from run() directly. Its own wakeups
are the workload.

Thanks.

--
tejun