Linux Test Project
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: Martin Doucha <mdoucha@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] aio_cancel: Fix incorrect strerror() usage
Date: Wed, 29 Apr 2026 15:20:05 +0000	[thread overview]
Message-ID: <20260429152005.3985-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260429145314.79256-1-mdoucha@suse.cz>

Hi Martin,

--- [PATCH 2/2] ---

On Wed, 29 Apr 2026 16:53:12 +0200, Martin Doucha wrote:
> aio_cancel_6-1: Rewrite test
>
> The test schedules multiple async writes into a file and then hopes that
> at least one will block long enough that aio_cancel() will cancel it.
> [...]
> This fixes a race condition where aio_cancel() could be called after the
> target write has already finished. [...]
>
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>

The commit body says this fixes a race condition, so a Fixes: tag is
required. Patch 1/2 in this same series correctly uses Fixes: tags for
analogous rewrite-as-bugfix commits to 5-1.c and 7-1.c. Please add a
Fixes: referencing the commit that introduced the original 6-1.c.

Pre-existing issues noticed in the surrounding code (not introduced
by this patch):

- aio_cancel/5-1.c — Uses nanosleep() in a spin-wait loop for
  synchronization.

---
Note:

Our agent completed the review of the patch. The full review can be
found at: https://patchwork.ozlabs.org/project/ltp/list/?series=502088

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

  parent reply	other threads:[~2026-04-29 15:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29 14:53 [LTP] [PATCH v2 1/2] aio_cancel: Fix incorrect strerror() usage Martin Doucha
2026-04-29 14:53 ` [LTP] [PATCH v2 2/2] aio_cancel_6-1: Rewrite test Martin Doucha
2026-05-06 12:23   ` Andrea Cervesato via ltp
2026-05-06 16:36   ` Cyril Hrubis
2026-05-07  7:32     ` Andrea Cervesato via ltp
2026-04-29 15:20 ` linuxtestproject.agent [this message]
2026-05-06 12:22 ` [LTP] [PATCH v2 1/2] aio_cancel: Fix incorrect strerror() usage Andrea Cervesato via ltp
2026-05-06 15:27 ` Cyril Hrubis
2026-05-07  7:34 ` Andrea Cervesato via ltp
  -- strict thread matches above, loose matches on Subject: below --
2026-04-28 13:32 [LTP] [PATCH " Martin Doucha
2026-04-28 14:44 ` [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=20260429152005.3985-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=ltp@lists.linux.it \
    --cc=mdoucha@suse.cz \
    /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