Re: [PATCH v6 0/4] Rate limited printing for Rust

From: Miguel Ojeda

Date: Mon Oct 12 2026 - 01:10:26 EST


On Wed, Oct 7, 2026 at 4:30 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> To avoid DoS on the kernel log, the Rust Binder driver is being switched
> to rate limited printing. But before we can do that, we must first
> implement rate limited printing for Rust. Thus, do that.
>
> However, it turns out that before we can implement rate limited
> printing, we must first implement the ability declare a raw_spinlock_t
> in a global variable. Thus, do that too.
>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>

Applied to `rust-next` -- thanks everyone!

[ Used the "kernel vertical" imports style. - Miguel ]

[ Removed unused link reference definitions. On the `static`, allowed
the `non_upper_case_globals` lint so that `kernel` users (and users
providing their own name) do not warn. Reworded title for typo.
- Miguel ]

Cheers,
Miguel