Re: lib: Use backoff polling to wait for loop device nodes

Li Wang <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
Hi Wake,

On Sat, Aug 08, 2026 at 01:32:46AM +0000, [email protected] 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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.