[PATCHSET RESEND sched_ext/for-7.2] sched_ext: cmask improvements

From: Tejun Heo

Date: Sun May 17 2026 - 14:39:12 EST


Hello,

Resend with the correct cover letter. The earlier posting
(20260517181022.1184056-1-tj@xxxxxxxxxx) went out under a stale cover
from an unrelated draft; the three patches themselves were the right
ones and are unchanged in this resend. Apologies for the noise.

Three patches for cmask: tidy active-range bookkeeping and add the
mask-on-mask op helpers the sub-sched series will use.

Not backward-compat with the current scx_cmask layout/API, but cmask
landed in for-7.2 and hasn't been released; scx_qmap is the only user.

0001 - sched_ext: Rename scx_cmask.nr_bits to nr_cids
0002 - sched_ext: Track bits[] storage size in struct scx_cmask
0003 - sched_ext: Add cmask mask ops

Based on sched_ext/for-7.2 (c9017d335aab).

Git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git cmask-prep

kernel/sched/ext_cid.c | 307 +++++++++++++++++++++++++++++++++-
kernel/sched/ext_cid.h | 71 +++++++-
kernel/sched/ext_types.h | 64 +++++--
tools/sched_ext/include/scx/cid.bpf.h | 117 +++++++++----
4 files changed, 506 insertions(+), 53 deletions(-)

Thanks.

--
tejun