Re: [RESEND PATCH] sched/syscalls: Allow setting niceness using sched_param struct
From: Michael Pratt
Date: Tue Sep 24 2024 - 23:35:26 EST
Hi Peter,
Have I addressed your concerns?
In my opinion, this is a simple change that adds ABI functionality,
without affecting any other parts of the syscalls involved, whether breaking or non-breaking.
Like I said in previous replies, POSIX doesn't allow passing a negative number
as a successful value, and setting the static priority directly can expose
the scheduler to invalid priority values for CFS policies in later syscalls.
As far as I can see, this is the only way for usage of posix_spawnattr_setschedparam()
to be both compliant _and_ functional for SCHED_NORMAL and SCHED_BATCH.
--
Thanks for your time,
MCP