]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
run-make-check.sh: build ctest cpu resource pool from sched_getaffinity 69517/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 16 Jun 2026 06:13:22 +0000 (14:13 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Tue, 16 Jun 2026 10:35:04 +0000 (18:35 +0800)
commit2bb17b80aa4c5813b6a8fc78fc0e2410b746a76b
tree9cd6df4b3d13abcd3283d1e5219546806a6cfc1e
parent2286265c0a847f111529178d9a2405621449ad40
run-make-check.sh: build ctest cpu resource pool from sched_getaffinity

gen_ctest_resource_file assumed online CPUs are a contiguous 0..nproc-1 range.
When a middle core is hot-offlined (e.g. for a hardware fault), that both hands
out the offline cpu id and drops an online one; crimson seastar unittests feed
the ctest resource id straight to seastar --cpuset, so hitting the offline id
aborts with "Bad value for --cpuset: N not allowed".

Use the CPUs actually schedulable by the process via sched_getaffinity().

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
run-make-check.sh