From: linuxtestproject.agent@gmail.com
To: Avinesh Kumar <avinesh.kumar@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] uevent02: Make wait_for_uevents() order-independent
Date: Tue, 25 Aug 2026 17:36:13 +0000 [thread overview]
Message-ID: <20260825173613.8867-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260825171405.123011-1-avinesh.kumar@suse.com>
Hi Avinesh,
On Tue, 25 Aug 2026, Avinesh Kumar wrote:
> uevent02: Make wait_for_uevents() order-independent
> + for (i = 0; i < cnt; i++) {
> + if (!pending[i])
> + continue;
> +
> + if (uevent_match(buf, len, pending[i])) {
> + tst_res(TPASS, "Got expected UEVENT");
> + pending[i] = NULL;
> + remaining--;
> + break;
> }
> }
Could this preserve ordering between dependent lifecycle phases?
The callers put add and remove events for the same objects in one array.
Matching every pending entry means that a remove received before its add is
accepted, causing the test to pass despite an invalid lifecycle order. The
kernel change only requires the interface and queue add events to be
order-independent.
Could each independent group be matched without order while retaining the
ordering between the add and remove phases?
Verdict - Needs revision
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-08-25 17:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 17:14 [LTP] [PATCH] uevent02: Make wait_for_uevents() order-independent Avinesh Kumar via ltp
2026-08-25 17:36 ` linuxtestproject.agent [this message]
2026-08-28 15:26 ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
2026-08-28 21:09 ` [LTP] " linuxtestproject.agent
2026-09-03 13:25 ` [LTP] [PATCH v2] " Andrea Cervesato via ltp
2026-09-03 14:42 ` Cyril Hrubis
2026-09-07 19:44 ` [LTP] [PATCH v3] " Avinesh Kumar via ltp
2026-09-07 22:01 ` [LTP] " linuxtestproject.agent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260825173613.8867-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=avinesh.kumar@suse.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox