]> git.hungrycats.org Git - linux/commit
rv: Use 0 to check preemption enabled in opid
authorGabriele Monaco <gmonaco@redhat.com>
Mon, 1 Jun 2026 15:38:37 +0000 (17:38 +0200)
committerGabriele Monaco <gmonaco@redhat.com>
Wed, 3 Jun 2026 10:33:25 +0000 (12:33 +0200)
commitd9022172c1abea9e220d13ee453813dafec5b9e4
treea924bac31d645391d68960ff78017bf60b061d63
parent7c147fae71f3b3542ba3292d2099ef7237cfc0da
rv: Use 0 to check preemption enabled in opid

Tracepoint handlers no longer run with preemption disabled by default
since a46023d5616 ("tracing: Guard __DECLARE_TRACE() use of
__DO_TRACE_CALL() with SRCU-fast"), the opid monitor should now count 1
in the preemption count as preemption disabled.

Change the rule for preempt_off to preempt > 0.

Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260601153840.124372-11-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
kernel/trace/rv/monitors/opid/opid.c