Re: scsi: block: ioprio: Clean up interface definition - ioprio_set03.c:40: TFAIL: ioprio_set IOPRIO_CLASS_BE prio 8 should not work

From: Damien Le Moal
Date: Sun Jan 14 2024 - 19:13:20 EST


On 1/13/24 16:05, Naresh Kamboju wrote:
> On Fri, 12 Jan 2024 at 10:49, Damien Le Moal <dlemoal@xxxxxxxxxx> wrote:
>>
>> On 1/12/24 14:15, Naresh Kamboju wrote:
>>> The LTP test 'iopri_set03' fails on all the devices.
>>> It fails on linux kernel >= v6.5. ( on Debian rootfs ).
>>> Test fail confirmed on LTP release 20230929 and 20230516.
>>>
>>> Test failed log:
>>> ------------
>>> tst_test.c:1690: TINFO: LTP version: 20230929
>>> tst_test.c:1574: TINFO: Timeout per run is 0h 05m 00s
>>> ioprio_set03.c:40: TFAIL: ioprio_set IOPRIO_CLASS_BE prio 8 should not work
>>> ioprio_set03.c:48: TINFO: tested illegal priority with class NONE
>>> ioprio_set03.c:51: TPASS: returned correct error for wrong prio: EINVAL (22)
>>>
>>> Investigation:
>>> ----------
>>> Bisecting this test between kernel v6.4 and v6.5 shows patch
>>> eca2040972b4 ("scsi: block: ioprio: Clean up interface definition")
>>> as the first faulty commit.
>>>
>>> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>>
>> This is fixed in LTP. Please update your LTP setup to avoid this issue.
>
> Please point me to the fixed commit id.

git log --author="Damien Le Moal"

And of course you need to make sure that you are compiling LTP against the
kernel headers of the target test kernel.


--
Damien Le Moal
Western Digital Research