Re: [PATCH v2] chrt: Make priority optional for policies that don't use it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Op 18-06-2025 om 18:41 schreef Madadi Vineeth Reddy:
So, my thought is just to make priority argument optional for
policies that don't use it and keep the existing behavior as is.

That's not possible.  Currently, doing something like

  ./chrt --idle --pid $$

just reports the current policy and priority, and does
not change the policy (because the priority is missing).
After your patch, doing the same command reports nothing
but _does_ change the policy.  You could still make it
report the current settings, but that would give the
wrong idea, because it would be the _old_ settings.

So, as Karel said, silently ignoring the policy option
when no priority was given was ugly.  Too ugly to keep
it that way.  As Karel implied: break compatibility and
do the sensible thing: whenever a policy option is given,
act upon it -- and when a needed priority is missing,
error out.


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux