Page MenuHomeFreeBSD

cpuset: Adapt sched_affinity compat shims to the stable/13
ClosedPublic

Authored by dchagin on Feb 19 2023, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Feb 14, 3:53 PM
Unknown Object (File)
Wed, Feb 5, 9:33 AM
Unknown Object (File)
Tue, Feb 4, 8:19 PM
Unknown Object (File)
Sun, Feb 2, 7:18 PM
Unknown Object (File)
Jan 28 2025, 2:01 AM
Unknown Object (File)
Jan 27 2025, 5:03 PM
Unknown Object (File)
Jan 23 2025, 6:46 PM
Unknown Object (File)
Jan 23 2025, 6:46 PM
Subscribers

Details

Summary

Use compat shims to run the stable/13 world on a kernels which
does not support CPU_WHICH_TIDPID.

This is direct commit to the stable/13.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libc/gen/sched_getaffinity.c
44

I do not understand this condition.

IMO the right fix would be to add (*not replace*) a symbol like P_OSREL_TIDPID_13 to stable/13 branch, and the condition would be

if (__getosreldate() < P_OSREL_TIDPID_13 || (P_OSREL_MAJOR(__getosreldate()) == P_OSREL_MAJOR(P_OSREL_TIDPID) && __getosreldate() < P_OSREL_TIDPID)) {
This revision is now accepted and ready to land.Feb 20 2023, 12:26 PM