Re: [PATCH v2] chrt: Make priority optional for policies that don't use it
Benno Schulenberg <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
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
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmhUG2UFAwAAAAAACgkQUUu+Lrjhlh/Q 7g//a0rOZjQRLcJ+hueG4qT/HIyA2nmZ3oSM4n9ejpi6UGQiPYwynvim1iWg11OfKCLkLmqn93Hu N9VjrWb0ZFuemD4dQG+dfOCA+e2IMPLs8l8qSt9JuORaJuZ1AsIYYczFMjGh4rIZjFukzsNP+d8M mFD06ZmpSPy2jCBE9KHBkcRg6Gcun9tCeKy5cjveX2mcbvTVTeI0YDwiGFM4rYbOcfo2XtKfRqoW ZSJIeYTaUkfxX0J3XGSbLItNOHfbbApoIOqnqg9S3Z2o+j28diKd5B8FoWQbHdWDvPvGQVpRuy2o ++jelvP2FkLIEgjaxPxs6FOX0thLImsabQ8/io1d9ezL9Ly0LOZeqqZCpXLU/S5g4K93b6YpWldx InzkIzUfQ156dp9RU1HAIXklrNzsZCGecsSNsxTldcKOu50dRUsnkSzXh0llvJ6y+X4C4mNNDJ+4 F/ZZphVakGQSdxmM9Qqntx9uXmDKHuHrCGl3SdYn+pI0wydpNTH7mCFDRyhvzCz/nmBDwxMdrLsP bUQ+rbbRFKJfcs2+Zjk82rBhQ1wFlXM8mZCQw2Vp7ZR3Had7fZ+VVxhohp9P6i/RMxyzih6SrW0X WopMBV9eHnbUdFo/xDfWVlTrrtzTymFykTK9xWxL6j0h+fCstrjVR7nylpqBlDNHjaNgjANpc63A Oh8= =8jFJ -----END PGP SIGNATURE-----