Re: [PATCH v5 02/15] rust: sync: completion: add wait_for_completion_timeout()
From: Alice Ryhl
Date: Fri Oct 02 2026 - 04:26:13 EST
On Wed, Sep 30, 2026 at 5:43 AM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
>
> From: Joel Fernandes <joelagnelf@xxxxxxxxxx>
>
> A driver that runs an interrupt self-test during probe waits for the
> handler to fire. wait_for_completion() has no timeout, so a broken
> interrupt path stalls probe indefinitely. Add a timeout variant of
> wait_for_completion().
>
> Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Joel Fernandes <joelagnelf@xxxxxxxxxx>
> [jhubbard: return the remaining jiffies]
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
With the timeout clamped to LONG_MAX as sashiko says:
Acked-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Feel free to take through drm-rust-next.