[LTP] [PATCH v2] cpuset_regression_test: Fix test, if cpuset groups exist already

Joerg Vehlow lkml@jv-coder.de
Mon Jan 10 12:00:51 CET 2022


Hi,


Am 11/24/2021 um 9:24 AM schrieb Richard Palethorpe:
> Hello Joerg,
> 
> Joerg Vehlow <lkml@jv-coder.de> writes:
> 
>> From: Joerg Vehlow <joerg.vehlow@aox-tech.de>
>>
>> Fix three errors:
>>   1. read -d is not posix, but not even required,
>>      because find and read work line-based
>>   2. Setting cpuset.cpus to an empty string is not allowed.
>>      -> If there are cpuset groups defined already, we need at least two cpus.
>>      One is used for the test, the other one is used for existing groups.
>>   3. Existing cgroup hierarchies were not handled correctly.
>>      When setting the cpuset.cpus, it must be done first for parent groups,
>>      otherwise cpu constraints for can be violated.
>>
>> Fixes: 6950e96eabb2 ("cpuset_regression_test: Allow running, if groups exist")
>> Signed-off-by: Joerg Vehlow <joerg.vehlow@aox-tech.de>
> 
> Looks Good!
> 
> Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>
> 

a little ping for merging this

Joerg


More information about the ltp mailing list