[LTP] [PATCH v2 1/2] ioprio: use ioprio.h kernel header if it exists

Damien Le Moal dlemoal@kernel.org
Tue Jun 20 15:01:10 CEST 2023


On 6/20/23 19:14, Petr Vorel wrote:
> Hi Damien,
> 
> thanks for this effort!
> 
>> For the ioprio system call test cases, avoid blindly defining the
>> IOPRIO_XXX macro internally and instead use the kernel user API header
>> file if it exists. Given that the definitions in this header file have
>> changed over time, make sure to test for the existence of the macro
>> IOPRIO_PRIO_LEVEL macro and define it if it does not exist. Similarly,
>> use IOPRIO_NR_LEVELS to define IOPRIO_PRIO_NUM if that macro exists.
> 
>> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
>> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> 
> If I'm correct, the only change in v2 is added Linus Walleij's RBT.
> nit: it'd be better if he sent it himself.

Yes, that was the only difference + I sent that v2 after subscribing to the ltp
list as I did get the notice about my messages being held up when I sent V1.

Thanks !

-- 
Damien Le Moal
Western Digital Research



More information about the ltp mailing list