[LTP] lib: Use backoff polling to wait for loop device nodes
Li Wang
li.wang@linux.dev
Mon Aug 10 05:55:58 CEST 2026
Hi Wake,
On Sat, Aug 08, 2026 at 01:32:46AM +0000, linuxtestproject.agent@gmail.com wrote:
> Hi Wake,
>
> On Fri, 7 Aug 2026, Wake Liu wrote:
> > lib: Use backoff polling to wait for loop device nodes
>
> > + path_set = TST_RETRY_FN_EXP_BACKOFF(
> > + set_dev_loop_path(rc, path, path_len),
> > + TST_RETVAL_EQ0, 1);
>
> Could the backoff arithmetic be made overflow-safe before these two new
> uses?
>
> LTP_TIMEOUT_MUL=3000 is accepted by parse_mul(), which makes
Theoretically, this is correct, but I don't think anyone will
need a timeout as large as 3000 * 30s for one of LTP test.
It would take nearly 25 hours to trigger, which is unrealistic.
IOW, your patch v6 is good enough. Sometimes AI agent is too strict.
--
Regards,
Li Wang
More information about the ltp
mailing list