Re: [PATCH] hrtimers: Make hrtimer_update_function() less expensive

From: Jens Axboe
Date: Sat Feb 08 2025 - 10:18:47 EST


On 2/7/25 2:16 PM, Thomas Gleixner wrote:
> The sanity checks in hrtimer_update_function() are expensive for high
> frequency usage like in the io/uring code due to locking.
>
> Hide the sanity checks behind CONFIG_PROVE_LOCKING, which has a decent
> chance to be enabled on a regular basis for testing.

Looks good to me, thanks Thomas. On my side, I always have a debug run
done with PROVE_LOCKING and KASAN, fwiw.

--
Jens Axboe