[LTP] [PATCH v1] Fix wqueue09 according with 5.17 kernel updates

Cyril Hrubis chrubis@suse.cz
Wed Mar 30 11:25:41 CEST 2022


Hi!
> FYI while test works on small -i, it blocks on higher:
> 
> ./wqueue09 -i1000
> ...
> common.h:153: TINFO: NOTIFY[000]: ty=000000 sy=01 i=00000008
> wqueue09.c:48: TPASS: Meta loss notification received
> common.h:134: TINFO: Reading watch queue events
> common.h:153: TINFO: NOTIFY[000]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[010]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[020]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[030]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[040]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[050]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[060]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[070]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[080]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[090]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[0a0]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[0b0]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[0c0]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[0d0]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[0e0]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[0f0]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[100]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[110]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[120]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[130]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[140]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[150]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[160]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[170]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[180]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[190]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[1a0]: ty=000001 sy=01 i=00000110
> common.h:134: TINFO: Reading watch queue events
> common.h:153: TINFO: NOTIFY[000]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[010]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[020]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[030]: ty=000001 sy=01 i=00000110
> common.h:153: TINFO: NOTIFY[040]: ty=000001 sy=01 i=00000110
> common.h:134: TINFO: Reading watch queue events
> common.h:153: TINFO: NOTIFY[000]: ty=000000 sy=01 i=00000008
> wqueue09.c:48: TPASS: Meta loss notification received
> common.h:134: TINFO: Reading watch queue events
> => timeouts
> 
> I tested this on ppc64le with 65k page size on 5.17.0-rc5-150400.9-default
> But it's not page size specific, as it fails also on x86_64 with the default 4k
> page size.

That would mean that the keyctl() operations did fail, I guess that we
should check the results of these calls.

> And *without* this patch it's also broken with higher -i (tested on both x86_64
> with the default 4k page size and ppc64le with 65k):
> 
> ./wqueue09 -i1000
> wqueue09.c:48: TPASS: Meta loss notification received
> common.h:134: TINFO: Reading watch queue events
> common.h:152: TINFO: NOTIFY[000]: ty=000001 sy=01 i=00000110
> common.h:134: TINFO: Reading watch queue events
> common.h:152: TINFO: NOTIFY[000]: ty=000000 sy=01 i=00000008
> wqueue09.c:48: TPASS: Meta loss notification received
> common.h:86: TBROK: add_key error: EDQUOT

This may be solveable by moving the add_key() call to the test setup.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list