<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><font size="4">Hi Petr,</font></p>
<p><font size="4">I guess the bug coming out from older versions of
the kernel is related with kernel patch
3b4c0371928c17af03e8397ac842346624017ce6 and the way watch_queue
was implemented.</font></p>
<p><font size="4">Probably test was finding a kernel bug which is
now solved with that patch and, with a proper wqueue09
implementation, this bug is not showing anymore with high -i
values. Please check the latest version of the wqueue09 patch
that I've sent.<br>
</font></p>
<p><font size="4">Andrea<br>
</font></p>
<div class="moz-cite-prefix">On 3/31/22 08:21, Petr Vorel wrote:<br>
</div>
<blockquote type="cite" cite="mid:YkVIXjarbhum1eux@pevik">
<pre class="moz-quote-pre" wrap="">Hi all,
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi Andrea,
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On 2022-03-30 11:08, Andrea Cervesato wrote:
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">This patch fixes also the issue of loosing events on big number of
iterations
such as -i 1000.
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Unfortunately when testing on machine with older kernel (older Tumbleweed
with
5.9.1-1-default) it still blocks and then timeout:
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">wqueue09.c:52: TPASS: Meta loss notification received
common.h:134: TINFO: Reading watch queue events
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
FYI on long enough -i (513 in my case)
buf_len = SAFE_READ(0, fd, buffer, sizeof(buffer));
This is regardless kernel version (tested on Tumbleweed 5.17.0-3.g6cba016-default
and SLES 5.14.21) => easily reproducible.
NOTE: keyctl() return value is always 0.
Also not sure why we are not revoking key any more (removed in this patchset).
Kind regards,
Petr
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">NOTE: I haven't tested it on 5.17 yet.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Kind regards,
Petr
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
</html>