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
F87122832: D38677.diff
Sat, Jun 29, 4:14 PM
Unknown Object (File)
Thu, Jun 27, 9:39 AM
Unknown Object (File)
Tue, Jun 25, 7:33 AM
Unknown Object (File)
Tue, Jun 25, 12:15 AM
Unknown Object (File)
Mon, Jun 24, 10:08 PM
Unknown Object (File)
Fri, Jun 21, 12:24 AM
Unknown Object (File)
Thu, Jun 20, 11:06 PM
Unknown Object (File)
Thu, Jun 20, 11:03 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49894
Build 46786: arc lint + arc unit

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