[LTP] [PATCH v4] lib: Use backoff polling to wait for loop device nodes
Li Wang
li.wang@linux.dev
Wed Aug 5 09:10:50 CEST 2026
Andrea Cervesato via ltp wrote:
> Hi Wake,
>
> I sent the Reviewed-by tag to the wrong email. @Li the agent review is
> correct and backoff polling is not working with old API. We need to find
> an another way for that.
>
> As you can see the CI is failing everywhere in v4:
> https://patchwork.kernel.org/project/ltp/patch/20260805025418.1249003-1-wakel@google.com/
Yes, a simple way to fix it is to declare the tst_multiply_timeout()
in tst_common.h directly, then the lib can build successfully.
--- a/include/tst_common.h
+++ b/include/tst_common.h
@@ -26,6 +26,8 @@
#define LTP_ALIGN(x, a) __LTP_ALIGN_MASK(x, (typeof(x))(a) - 1)
#define __LTP_ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
+unsigned int tst_multiply_timeout(unsigned int timeout);
+
/**
* TST_RETRY_FUNC() - Repeatedly retry a function with an increasing delay.
* @FUNC - The function which will be retried
--
Regards,
Li Wang
More information about the ltp
mailing list