Re: [PATCH v2 02/15] rust: sync: completion: add wait_for_completion_timeout()

From: Alexandre Courbot

Date: Sun Aug 30 2026 - 21:10:27 EST


On Sat Aug 29, 2026 at 10:22 AM JST, John Hubbard 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().
>
> Signed-off-by: Joel Fernandes <joelagnelf@xxxxxxxxxx>
> [jhubbard: return the remaining jiffies]
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>

Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

Wish I took a look earlier; this patch could have been merged through
the rust tree before the merge window opened. Now I guess we will need
to take it into `drm-rust-next` as part of this series. Not a big deal
though, unless other potential users appear this cycle.