Re: [PATCH v2 2/2] rust: task: add Rust version of might_sleep()

From: Alice Ryhl
Date: Fri Apr 11 2025 - 05:12:59 EST


On Fri, Apr 11, 2025 at 07:56:23AM +0900, FUJITA Tomonori wrote:
> Adds a helper function equivalent to the C's might_sleep(), which
> serves as a debugging aid and a potential scheduling point.
>
> Note that this function can only be used in a nonatomic context.
>
> This will be used by Rust version of read_poll_timeout().
>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>