Re: [PATCH v2 2/3] arm64: Always inline preempt count and reschedule checks

From: Hongyan Xia

Date: Wed Nov 25 2026 - 21:51:35 EST


On 11/26/2026 10:30 AM, Karl Mehltretter wrote:
> The preempt count and reschedule checks are plain inline functions,
> which permits out-of-line copies in instrumentable text. The checked
> notrace helpers added by the following patch use preempt_count(), while
> preempt_enable_notrace() uses should_resched() with
> CONFIG_DEBUG_PREEMPT and __preempt_count_dec_and_test() without it.
>
> Force all three operations inline so noinstr callers keep them in their
> own section.
>
> Reviewed-by: Hongyan Xia <hongyan.xia@xxxxxxxxxxxxx>
> Signed-off-by: Karl Mehltretter <kmehltretter@xxxxxxxxx>

Nit: I'm flattered, but probably no need to put my R-b before your S-o-b :)

Same for 1/3. My R-b should be after you.

> ---
> [...]