[LTP] [PATCH 2/2] ioprio: Use IOPRIO_PRIO_NUM to check prio range

Damien Le Moal dlemoal@kernel.org
Thu Jun 8 02:54:59 CEST 2023


On 6/7/23 15:44, Linus Walleij wrote:
> On Mon, Jun 5, 2023 at 6:41 AM Damien Le Moal <dlemoal@kernel.org> wrote:
> 
>> Use the macro IOPRIO_PRIO_NUM in prio_in_range() to check the upper
>> bound of the valid range for priority levels. Similarly, in the test
>> case ioprio_set03, use this macro to check for failures when the user
>> attempts using a priority level out of range.
>>
>> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> 
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Thanks Linus !

May I also ask for your review of the kernel ioprio API patch ?
It is here:

https://lore.kernel.org/linux-block/20230530061307.525644-1-dlemoal@kernel.org/

> 
> Yours,
> Linus Walleij

-- 
Damien Le Moal
Western Digital Research



More information about the ltp mailing list